2023-08-17 21:45:58 +02:00
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
2023-11-19 00:40:58 +01:00
|
|
|
location / {
|
2023-08-17 21:45:58 +02:00
|
|
|
|
2023-11-19 00:40:58 +01:00
|
|
|
proxy_pass http://127.0.0.1:__PORT__/;
|
2023-08-22 02:02:34 +02:00
|
|
|
proxy_set_header Host $host;
|
2023-08-17 21:45:58 +02:00
|
|
|
|
2023-08-22 02:02:34 +02:00
|
|
|
proxy_set_header X-Forwarded-Ssl on;
|
|
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
|
|
proxy_set_header X-Forwarded-Scheme https;
|
2023-08-17 21:45:58 +02:00
|
|
|
|
2023-08-22 02:02:34 +02:00
|
|
|
proxy_buffering off;
|
2023-08-17 21:45:58 +02:00
|
|
|
|
2023-08-22 02:02:34 +02:00
|
|
|
# Include SSOWAT user panel.
|
|
|
|
# include conf.d/yunohost_panel.conf.inc;
|
|
|
|
}
|
|
|
|
|
2023-11-19 00:40:58 +01:00
|
|
|
location /api/ {
|
2023-08-22 02:02:34 +02:00
|
|
|
|
2023-11-19 00:40:58 +01:00
|
|
|
proxy_pass http://127.0.0.1:__PORT_API__/;
|
2023-08-22 02:02:34 +02:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
|
|
|
proxy_set_header X-Forwarded-Ssl on;
|
|
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
|
|
proxy_set_header X-Forwarded-Scheme https;
|
2023-08-17 21:45:58 +02:00
|
|
|
|
2023-08-22 02:02:34 +02:00
|
|
|
proxy_buffering off;
|
2023-08-17 21:45:58 +02:00
|
|
|
|
|
|
|
# Include SSOWAT user panel.
|
2023-08-22 02:02:34 +02:00
|
|
|
# include conf.d/yunohost_panel.conf.inc;
|
2023-08-17 21:45:58 +02:00
|
|
|
}
|