17 lines
328 B
Nginx Configuration File
17 lines
328 B
Nginx Configuration File
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
server_name localhost;
|
||
|
|
root /usr/share/nginx/html;
|
||
|
|
index index.html;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
try_files $uri $uri/ /index.html;
|
||
|
|
}
|
||
|
|
|
||
|
|
error_page 404 /index.html;
|
||
|
|
|
||
|
|
# Enable CORS just in case
|
||
|
|
add_header X-Content-Type-Options nosniff;
|
||
|
|
add_header X-Frame-Options SAMEORIGIN;
|
||
|
|
}
|