mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-21 13:53:53 -07:00
adding seafile configuration
Signed-off-by: Stephon Parker <sgparker62@gmail.com>
This commit is contained in:
parent
3f5dd87518
commit
11754ce25c
1 changed files with 40 additions and 0 deletions
40
seafile.subdomain.conf.sample
Normal file
40
seafile.subdomain.conf.sample
Normal 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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue