From b1e87af6f2ad7e82c7f8804733dc0ac25e41904b Mon Sep 17 00:00:00 2001 From: Alessandro Pignotti Date: Mon, 14 Oct 2024 15:21:04 +0200 Subject: [PATCH] Cleanup stale content in nginx.conf --- nginx.conf | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/nginx.conf b/nginx.conf index 60471a6..ac8a1ea 100644 --- a/nginx.conf +++ b/nginx.conf @@ -32,45 +32,12 @@ http { # ssl_certificate_key nginx.key; location / { - root .; + root build; autoindex on; index index.html index.htm; - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Expose-Headers' 'content-length' always; add_header 'Cross-Origin-Opener-Policy' 'same-origin' always; add_header 'Cross-Origin-Embedder-Policy' 'require-corp' always; add_header 'Cross-Origin-Resource-Policy' 'cross-origin' always; - #auth_basic "CX Demo"; - #auth_basic_user_file basicauth; - } - - location /images/ { - root .; - if ($arg_s != "") { - rewrite ^/images/(.*)$ $1 break; - } - if ($arg_s = "") { - gzip off; - } - error_page 404 =200 /images_slicer/$uri?$args; - } - - location /images_slicer/ { - proxy_pass http://localhost:8082/images/; - proxy_http_version 1.0; - proxy_set_header Range bytes=$arg_s-$arg_e; - proxy_hide_header Content-Range; - } - } - - server { - listen 127.0.0.1:8082; - server_name localhost; - - charset utf-8; - - location / { - root .; } } }