2018-08-01 06:40:03 +02:00
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
|
|
location __PATH__/ {
|
2023-05-22 23:31:46 +02:00
|
|
|
alias __INSTALL_DIR__/build/client/;
|
2022-11-30 13:59:52 +01:00
|
|
|
try_files $uri $uri/index.html @__NAME__;
|
2017-07-18 02:12:10 +02:00
|
|
|
|
2022-06-15 01:48:45 +02:00
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
2016-09-09 11:07:28 +02:00
|
|
|
}
|
2019-01-23 20:47:00 +01:00
|
|
|
|
|
|
|
location ~ __PATH__/\.(css|js|png|jpe?g|svg|eot|woff2?)$ {
|
2022-06-15 01:48:45 +02:00
|
|
|
more_set_headers 'Cache-Control: max-age=2592000, must-revalidate, public';
|
|
|
|
gzip_types text/plain text/css application/javascript text/javascript;
|
2022-11-30 13:59:52 +01:00
|
|
|
try_files $uri $uri/index.html @__NAME__;
|
2019-01-23 20:47:00 +01:00
|
|
|
}
|
|
|
|
|
2022-11-30 13:59:52 +01:00
|
|
|
location @__NAME__ {
|
2022-06-15 01:48:45 +02:00
|
|
|
client_max_body_size 8M;
|
|
|
|
send_timeout 600;
|
|
|
|
proxy_connect_timeout 600;
|
|
|
|
proxy_send_timeout 600;
|
|
|
|
proxy_read_timeout 600;
|
|
|
|
proxy_set_header Host $host;
|
2019-01-23 20:47:00 +01:00
|
|
|
|
2022-06-15 01:48:45 +02:00
|
|
|
proxy_pass http://127.0.0.1:__PORT__;
|
|
|
|
proxy_redirect off;
|
2019-07-14 18:42:38 +02:00
|
|
|
}
|