From 6cd534dec926c2c3571b411277a5c22be6f4b0b9 Mon Sep 17 00:00:00 2001 From: Stefan Wieczorek Date: Wed, 6 Apr 2022 14:26:04 +0200 Subject: [PATCH] . --- v2/Static/Static | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 v2/Static/Static diff --git a/v2/Static/Static b/v2/Static/Static new file mode 100644 index 0000000..4c93be2 --- /dev/null +++ b/v2/Static/Static @@ -0,0 +1,31 @@ +server { + listen 80; + listen [::]:80; + listen 443 ssl http2; + listen [::]:443 ssl http2; + {{ssl_certificate_key}} + {{ssl_certificate}} + {{server_name}} + {{root}} + + {{nginx_access_log}} + {{nginx_error_log}} + + if ($scheme != "https") { + rewrite ^ https://$host$uri permanent; + } + + {{settings}} + + index index.html; + + location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ { + add_header Access-Control-Allow-Origin "*"; + expires max; + access_log off; + } + + if (-f $request_filename) { + break; + } +} \ No newline at end of file