From 17258c763151f626e8d97493d2a8af55148d00bc Mon Sep 17 00:00:00 2001 From: artem Date: Thu, 25 Apr 2024 21:54:48 +0300 Subject: [PATCH] nginx conf --- nginx.conf | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/nginx.conf b/nginx.conf index 8088490..a032668 100644 --- a/nginx.conf +++ b/nginx.conf @@ -6,15 +6,9 @@ server { gzip_vary on; gzip_types text/plain text/css application/json application/x-javascript application/javascript text/xml application/xml application/rss+xml text/javascript image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype; - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|otf|xml|txt)$ { - root /usr/share/nginx/html/browser; - try_files $uri /index.html; - } - location / { - proxy_set_header X-Forwarded-For $remote_addr; - proxy_set_header Host $http_host; - proxy_pass http://localhost:4000; + root /usr/share/nginx/html; + try_files $uri /index.html; } #error_page 404 /404.html; @@ -23,13 +17,13 @@ server { # error_page 500 502 503 504 /50x.html; location = /50x.html { - root /usr/share/nginx/html; + root /usr/share/nginx/html; } # deny access to hidden files like .git etc # concurs with nginx's one # location ~ /\. { - deny all; + deny all; } }