mirror of
https://github.com/YunoHost-Apps/filebrowser_ynh.git
synced 2024-09-03 18:36:05 +02:00
22 lines
608 B
Nginx Configuration File
22 lines
608 B
Nginx Configuration File
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
location __PATH__/ {
|
|
|
|
# prevents 502 bad gateway error
|
|
proxy_buffers 8 32k;
|
|
proxy_buffer_size 64k;
|
|
|
|
client_max_body_size 75M;
|
|
|
|
proxy_pass http://127.0.0.1:__PORT__;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
#proxy_set_header X-NginX-Proxy true;
|
|
|
|
# enables WS support
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_read_timeout 999999999;
|
|
}
|