1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/huginn_ynh.git synced 2024-09-03 19:26:13 +02:00
huginn_ynh/conf/nginx.conf

32 lines
956 B
Nginx Configuration File
Raw Normal View History

2022-03-25 01:57:12 +01:00
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
2015-11-18 02:16:34 +01:00
# Path to source
2023-09-28 22:23:08 +02:00
alias __INSTALL_DIR__/public/;
2015-11-18 02:16:34 +01:00
2022-03-25 01:57:12 +01:00
## @huginn is a named location for the upstream fallback, see below.
try_files $uri $uri/index.html $uri.html @huginn;
2015-11-18 02:16:34 +01:00
# Include SSOWAT user panel.
#include conf.d/yunohost_panel.conf.inc;
}
2022-03-25 01:57:12 +01:00
location @huginn {
## If you use HTTPS make sure you disable gzip compression
## to be safe against BREACH attack.
gzip off;
2015-11-18 02:16:34 +01:00
2022-03-25 01:57:12 +01:00
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_redirect off;
2015-11-18 02:16:34 +01:00
2023-09-28 22:31:48 +02:00
proxy_set_header Host $host;
2022-03-25 01:57:12 +01:00
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Frame-Options SAMEORIGIN;
2015-11-18 02:16:34 +01:00
2023-09-28 22:23:08 +02:00
proxy_pass http://unix:/__INSTALL_DIR__/tmp/sockets/unicorn.socket;
2022-03-25 01:57:12 +01:00
}