2017-08-28 16:34:15 +02:00
|
|
|
location __PATH__ {
|
|
|
|
|
2015-05-08 12:03:12 +02:00
|
|
|
if ($scheme = http) {
|
|
|
|
rewrite ^ https://$server_name$request_uri? permanent;
|
|
|
|
}
|
2017-08-28 16:34:15 +02:00
|
|
|
|
|
|
|
proxy_pass http://127.0.0.1:__PORT__/;
|
2015-05-08 12:03:12 +02:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_buffering off;
|
|
|
|
tcp_nodelay on;
|
|
|
|
access_log off;
|
2015-05-09 11:40:25 +02:00
|
|
|
|
2018-03-08 00:17:00 +01:00
|
|
|
# Allow shellinabox to use 'eval' without blocking the execution. But keep a warning.
|
|
|
|
add_header Content-Security-Policy-Report-Only "script-src https: 'unsafe-eval'";
|
|
|
|
|
2015-05-09 11:40:25 +02:00
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
|
|
|
more_clear_input_headers 'Accept-Encoding';
|
2015-05-08 12:03:12 +02:00
|
|
|
}
|