Created
September 29, 2020 15:39
-
-
Save BetterProgramming/14def28ac2bec3945a136acf4fc964b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
#listen 80; | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name yourdomain.com; | |
access_log /home/ubuntu/{{appName}}/client/server_logs/host.access.log main; | |
location / { | |
root /home/ubuntu/{{appName}}/client/deployed; | |
index index.html index.htm; | |
try_files $uri /index.html; | |
add_header X-Frame-Options SAMEORIGIN; | |
add_header X-Content-Type-Options nosniff; | |
add_header X-XSS-Protection "1; mode=block"; | |
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;"; | |
} | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root /usr/share/nginx/html; | |
} | |
server_tokens off; | |
location ~ /\.ht { | |
deny all; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment