seafile_ynh/conf/nginx.conf

69 lines
2.2 KiB
Nginx Configuration File
Raw Normal View History

2024-04-12 21:14:59 +02:00
location __PATH__ {
proxy_pass http://127.0.0.1:__PORT_SEAHUB__;
2017-09-30 15:07:56 +02:00
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;
2024-04-12 21:14:59 +02:00
proxy_read_timeout 1200s;
2017-09-30 15:07:56 +02:00
client_max_body_size 0;
2024-04-12 21:14:59 +02:00
access_log /var/log/nginx/seahub.access.log;
error_log /var/log/nginx/seahub.error.log;
include conf.d/yunohost_panel.conf.inc;
}
2024-04-12 21:14:59 +02:00
location __PATH__/media/ {
alias __SEAFILE_CODE__/seahub/media/;
}
location __PATH__/media/avatars/ {
alias __DATA_DIR__/seahub-data/avatars/;
2024-04-12 21:14:59 +02:00
}
location /seafhttp/ {
proxy_pass http://127.0.0.1:__PORT_FILESERVER__/;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
2024-04-12 21:14:59 +02:00
client_max_body_size 0;
proxy_request_buffering off;
access_log /var/log/nginx/seafhttp.access.log;
error_log /var/log/nginx/seafhttp.error.log;
}
2024-04-12 21:14:59 +02:00
location /notification/ping {
proxy_pass http://127.0.0.1:8083/ping;
access_log /var/log/nginx/notification.access.log;
error_log /var/log/nginx/notification.error.log;
}
2024-04-12 21:14:59 +02:00
location /notification {
proxy_pass http://127.0.0.1:8083/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
access_log /var/log/nginx/notification.access.log;
error_log /var/log/nginx/notification.error.log;
}
location /seafdav {
proxy_pass http://127.0.0.1:__PORT_WEBDAV__/seafdav;
2021-05-11 21:18:48 +02:00
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_set_header X-Forwarded-Proto $scheme;
2024-04-12 21:14:59 +02:00
2021-05-11 21:18:48 +02:00
proxy_read_timeout 1200s;
client_max_body_size 0;
2024-04-12 21:14:59 +02:00
proxy_request_buffering off;
access_log /var/log/nginx/seafdav.access.log;
error_log /var/log/nginx/seafdav.error.log;
}