TP-24538: added ngnix setup

This commit is contained in:
k.kamalakannan
2023-04-09 09:51:05 +05:30
parent e3589f57fa
commit 8a8258e7d8

23
nginx/nginx.conf Normal file
View File

@@ -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;
}
}