From d2853e5d558fb27ff0af41278ad201f2a372680e Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Wed, 25 Sep 2024 00:09:49 +0530 Subject: [PATCH] revert whitespace changes --- nginx/nginx.conf | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 484fa8cf0d9..f6c8b6aa555 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -1,26 +1,26 @@ server { - listen 80; + listen 80; - # Location block for index.html with a 6-hour cache - location = /index.html { - root /usr/share/nginx/html; - add_header Cache-Control "public, max-age=21600, must-revalidate"; - try_files $uri $uri/ /index.html; - } + # Location block for index.html with a 6-hour cache + location = /index.html { + root /usr/share/nginx/html; + add_header Cache-Control "public, max-age=21600, must-revalidate"; + try_files $uri $uri/ /index.html; + } - # Location block for all other files with a 7-day cache - location / { - root /usr/share/nginx/html; - index index.html index.htm; - try_files $uri $uri/ /index.html; - add_header Cache-Control "public, max-age=604800, must-revalidate"; - } + # Location block for all other files with a 7-day cache + location / { + root /usr/share/nginx/html; + index index.html index.htm; + try_files $uri $uri/ /index.html; + add_header Cache-Control "public, max-age=604800, must-revalidate"; + } - error_page 500 502 503 504 /50x.html; + error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } + location = /50x.html { + root /usr/share/nginx/html; + } }