From 11754ce25c37d2657209c08b61dde4a8b051e59b Mon Sep 17 00:00:00 2001 From: Stephon Parker Date: Tue, 13 Aug 2024 10:14:54 -0400 Subject: [PATCH] adding seafile configuration Signed-off-by: Stephon Parker --- seafile.subdomain.conf.sample | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 seafile.subdomain.conf.sample diff --git a/seafile.subdomain.conf.sample b/seafile.subdomain.conf.sample new file mode 100644 index 0000000..3ddb8eb --- /dev/null +++ b/seafile.subdomain.conf.sample @@ -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; + } + +}