adding seafile configuration

Signed-off-by: Stephon Parker <sgparker62@gmail.com>
This commit is contained in:
Stephon Parker 2024-08-13 10:14:54 -04:00
commit 11754ce25c
No known key found for this signature in database

View file

@ -0,0 +1,40 @@
server {
listen 443 ssl;
listen [::]:443 ssl;
# make sure that your seafile container is named seafile
# make sure that your dns has a cname set for seafile
server_name seafile.*; # update to match the full domain e.g. seafile.example.com
include /config/nginx/ssl.conf;
client_max_body_size 10m;
location / {
include /config/nginx/resolver.conf;
proxy_pass http://seafile:8000;
proxy_read_timeout 310s;
proxy_set_header Host $host;
proxy_set_header Forwarded "for=$remote_addr;proto=$scheme";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Connection "";
proxy_http_version 1.1;
client_max_body_size 0;
}
location /seafhttp {
include /config/nginx/resolver.conf;
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://seafile:8082;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 0;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_request_buffering off;
}
}