Uploading files to seafile via ssh tunnel from lxd

Hi
I have a setup setup similar to [SOLVED] Seafile Upload not working (seafhttp?)

only difference is that i am using ssh tunnels to access the seafile server rather than exposing it.
I get the same problem that i can sync the files from the desktop app but upload/download via the app or web doesn’t work.
Please help, really struck
Solutions tried : exhausted options
firewall -no problem
connection tried with the follwoing commands
ssh -f -N -L 8080:10.213.194.16:80 user@external ip
ssh -f -N -L 8080:10.213.194.16:80 -L 8082:10.213.194.16:8082 bhsi@external ip

contents of my ccnet.conf

USER_NAME = fileserver
ID = 373891c9ff3ca5f6f624b0ff88eeac15bb90eebd
NAME = example.com
SERVICE_URL = http://127.0.0.1

[Client]
PORT = 13419

[Database]
ENGINE = mysql
HOST = 127.0.0.1
PORT = 3306
USER = seafile
PASSWD = XXXXXXXXX
DB = ccnet-db
CONNECTION_CHARSET = utf8

contents of seahub_settings.py

-- coding: utf-8 --

SECRET_KEY = “XXXXXXXXXXXXXX”
FILE_SERVER_ROOT = ‘http://127.0.0.1:8082/seafhttp
DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.mysql’,
‘NAME’: ‘seahub-db’,
‘USER’: ‘seafile’,
‘PASSWORD’: ‘XXXXXXX’,
‘HOST’: ‘127.0.0.1’,
‘PORT’: ‘3306’
}
}

nginx conf

log_format seafileformat ‘$http_x_forwarded_for $remote_addr [$time_local] “$request” $status $body_bytes_sent “$http_referer” “$http_user_agent” $upstream_response_time’;

server {

listen 80;

server_name example.com;

proxy_set_header X-Forwarded-For $remote_addr;

location / {

     proxy_pass         http://127.0.0.1:8000;

     proxy_set_header   Host $host;

     proxy_set_header   X-Real-IP $remote_addr;

     proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;

     proxy_set_header   X-Forwarded-Host $server_name;

     proxy_read_timeout  1200s;

     # used for view/edit office file via Office Online Server

     client_max_body_size 0;


     access_log      /var/log/nginx/seahub.access.log seafileformat;

     error_log       /var/log/nginx/seahub.error.log;

}



location /seafhttp {

    rewrite ^/seafhttp(.*)$ $1 break;

    proxy_pass http://127.0.0.1:8082;

    client_max_body_size 0;

    proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;


    proxy_connect_timeout  36000s;

    proxy_read_timeout  36000s;

    proxy_send_timeout  36000s;

    send_timeout  36000s;

    access_log      /var/log/nginx/seafhttp.access.log seafileformat;

    error_log       /var/log/nginx/seafhttp.error.log;

}

location /media {

    root /srv/seafile-server-latest/seahub;

}

}

Just to update
it is solved, i have to set the
FILE_SERVER_ROOT to the local port on my machine.
So in my example command

i have set FILE_SERVER_ROOT = localhost:8080/seafhttp