2022-03-20 18:51:02 +01:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server;
|
2022-03-27 16:24:32 +02:00
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
2022-03-20 18:51:02 +01:00
|
|
|
|
|
|
|
server_name _;
|
|
|
|
|
2022-03-27 16:24:32 +02:00
|
|
|
ssl_certificate /config/keys/cert.crt;
|
|
|
|
ssl_certificate_key /config/keys/cert.key;
|
|
|
|
|
2022-03-20 18:51:02 +01:00
|
|
|
index index.html index.htm index.php;
|
|
|
|
|
|
|
|
location / {
|
2022-04-09 00:37:07 +02:00
|
|
|
alias /config/www/;
|
2022-07-23 17:53:58 +02:00
|
|
|
try_files $uri $uri/ =404;
|
2022-04-09 00:37:07 +02:00
|
|
|
}
|
|
|
|
location /themepark {return 302 $scheme://$http_host/themepark/;}
|
|
|
|
location /themepark/ {
|
2022-03-29 21:33:56 +02:00
|
|
|
alias /config/www/;
|
2022-03-20 18:51:02 +01:00
|
|
|
sub_filter_types *;
|
2022-04-09 00:37:07 +02:00
|
|
|
sub_filter 'url("/css/' 'url("/themepark/css/';
|
2022-05-14 14:17:28 +02:00
|
|
|
sub_filter 'url(/resources/' 'url(/themepark/resources/';
|
2022-03-20 18:51:02 +01:00
|
|
|
sub_filter_once off;
|
2022-07-23 17:53:58 +02:00
|
|
|
try_files $uri $uri/ =404;
|
2022-03-20 18:51:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# Don't cache
|
|
|
|
add_header Last-Modified $date_gmt;
|
|
|
|
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
|
|
|
|
if_modified_since off;
|
|
|
|
expires -1;
|
|
|
|
etag off;
|
|
|
|
}
|