Thanks for the answer and sorry for the delay, i was out of town for a week.
So i am thinking i need to take this from the start since i am kind of lost in trial and error.
First things first, in order to have seafile correctly setup for the reverse proxy to work i found two guides.
This: https://manual.seafile.com/deploy_windows/deploy_with_nginx.html says i need to:
ccnet.conf:
SERVICE_URL = http://www.mydomain.com
seafile.conf:
[seahub]
port=8000
fastcgi=true
seahub_settings.py:
FILE_SERVER_ROOT = ‘http://www.mydomain.com/seafhttp’
And this: https://manual.seafile.com/deploy/deploy_seahub_at_non-root_domain.html says i need to:
ccnet.conf:
SERVICE_URL = http://www.mydomain.com/seafile
seahub_settings.py:
SERVE_STATIC = False
MEDIA_URL = ‘/seafmedia/’
COMPRESS_URL = MEDIA_URL
STATIC_URL = MEDIA_URL + ‘assets/’
SITE_ROOT = ‘/seafile/’
LOGIN_URL = ‘/seafile/accounts/login/’ # NOTE: since version 5.0.4
FILE_SERVER_ROOT = ‘http://www.myseafile.com/seafhttp’
So i am assuming the correct Seafile setup in this scenario is a mix of the above like this:
seafile.conf:
[seahub]
port=8000
fastcgi=true
ccnet.conf:
SERVICE_URL = https://www.mydomain.com/seafile
seahub_settings.py:
SERVE_STATIC = False
MEDIA_URL = ‘/seafmedia/’
COMPRESS_URL = MEDIA_URL
STATIC_URL = MEDIA_URL + ‘assets/’
SITE_ROOT = ‘/seafile/’
LOGIN_URL = ‘/seafile/accounts/login/’ # NOTE: since version 5.0.4
FILE_SERVER_ROOT = ‘https://www.mydomain.com/seafhttp’
Does the above seem correct?
Is fastcgi necessary in this scenario or it can be done in another way to simplify things?
Trying to simplify things i tried the following:
CADDY CONFIG:
https://www.mydomain.com http://www.mydomain.com {
tls xxx.crt xxx.key
gzip
log C:/Caddy/logs/www.mydomain.txt
proxy /sickrage localhost:8081 {
transparent
}
proxy /plexpy localhost:8181 {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-For {remote}
header_upstream X-Forwarded-Proto {scheme}
header_upstream X-Forwarded-Host {host}
header_upstream X-Forwarded-Ssl {on}
}
proxy / 127.0.0.1:32400 {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-For {remote}
header_upstream X-Forwarded-Proto {scheme}
header_upstream X-Forwarded-Host {host}
header_upstream X-Forwarded-Ssl {on}
}
proxy /deluge 127.0.0.1:8112 {
transparent
without /deluge
header_upstream X-Deluge-Base “/deluge”
}
proxy /seafile localhost:8000 {
transparent
}
}
https://www.mydomain.com/seafhttp http://www.mydomain.com/seafhttp {
tls cert.crt cert.key
gzip
log C:/Caddy/logs/www.mydomainseafhttp.txt
proxy / localhost:8082 {
transparent
}
}
AND
ccnet.conf
SERVICE_URL = https://www.mydomain.com/seafile
GIVES
AND LOGS
[25/May/2017:13:33:33 +0300] “GET /media/css/seahub.min.css?t=1482456805 HTTP/2.0” 401 82
46.198.xxxxx - - [25/May/2017:13:33:33 +0300] “GET /media/assets/css/bootstrap.min.b00faad199b5.css HTTP/2.0” 401 82
46.198.xxxx- - [25/May/2017:13:33:33 +0300] “GET /media/img/seafile-logo.png HTTP/2.0” 401 82
46.198.xxx - [25/May/2017:13:33:33 +0300] “GET /media/js/jquery-1.12.1.min.js HTTP/2.0” 401 82
46.198.xxx- - [25/May/2017:13:33:33 +0300] “GET /media/js/base.js?t=1482456805 HTTP/2.0” 401 82
46.198.xxx - - [25/May/2017:13:33:33 +0300] “GET /media/js/jq.min.js HTTP/2.0” 401 82
46.198.xxx - - [25/May/2017:13:33:33 +0300] “GET /media/assets/scripts/lib/jquery.simplemodal.67fb20a63282.js HTTP/2.0” 401 82
46.198.xxx- - [25/May/2017:13:33:33 +0300] “GET /media/assets/scripts/lib/jquery.ui.tabs.7406a3c5d2e3.js HTTP/2.0” 401 82
46.198.xxx - - [25/May/2017:13:33:33 +0300] “GET /media/js/jq.min.js HTTP/2.0” 401 82
46.198.xxx - - [25/May/2017:13:33:33 +0300] “GET /media/js/base.js?t=1482456805 HTTP/2.0” 401 82
46.198.xxx- - [25/May/2017:13:33:33 +0300] “GET /media/img/favicon.png?t=1482456805 HTTP/2.0” 401 82