1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-09-11 19:32:24 +02:00
theme.park/docker/root/defaults/default
2022-05-14 14:16:28 +02:00

35 lines
982 B
Plaintext

server {
listen 80 default_server;
listen [::]:80 default_server;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name _;
ssl_certificate /config/keys/cert.crt;
ssl_certificate_key /config/keys/cert.key;
index index.html index.htm index.php;
location / {
alias /config/www/;
try_files $uri $uri/ /index.html;
}
location /themepark {return 302 $scheme://$http_host/themepark/;}
location /themepark/ {
alias /config/www/;
sub_filter_types *;
sub_filter 'url("/css/' 'url("/themepark/css/';
sub_filter 'url(/resources/' 'url(/themepark/resources/';
sub_filter_once off;
try_files $uri $uri/ /index.html;
}
# 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;
}