From 8a8258e7d8898e6e78743c273bff565d506f468c Mon Sep 17 00:00:00 2001 From: "k.kamalakannan" Date: Sun, 9 Apr 2023 09:51:05 +0530 Subject: [PATCH] TP-24538: added ngnix setup --- nginx/nginx.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 nginx/nginx.conf diff --git a/nginx/nginx.conf b/nginx/nginx.conf new file mode 100644 index 0000000..a15f8d1 --- /dev/null +++ b/nginx/nginx.conf @@ -0,0 +1,23 @@ +server { + listen 8080; + client_max_body_size 100M; + set $csp_header CSP_HEADER; + + add_header Content-Security-Policy $csp_header; + add_header Strict-Transport-Security "max-age=31536000; includeSubDomains"; + + gzip on; + gzip_comp_level 4; + gzip_types text/css application/javascript; + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + try_files $uri $uri/ /index.html; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } +} \ No newline at end of file