1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paperless-ngx_ynh.git synced 2024-09-03 19:56:33 +02:00
paperless-ngx_ynh/conf/nginx.conf

21 lines
558 B
Nginx Configuration File
Raw Normal View History

2022-03-29 11:08:51 +02:00
location __PATH__/ {
2022-03-29 17:50:14 +02:00
proxy_pass http://localhost:__PORT__/;
2022-03-29 11:08:51 +02:00
2022-03-29 17:50:14 +02:00
# These configuration options are required for WebSockets to work.
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
2022-03-29 11:08:51 +02:00
2022-03-29 17:50:14 +02:00
proxy_redirect off;
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;
2022-03-29 11:08:51 +02:00
2024-04-07 18:42:18 +02:00
client_max_body_size 100M;
2022-12-30 12:24:18 +01:00
2022-03-29 11:08:51 +02:00
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}