18 lines
440 B
Nginx Configuration File
18 lines
440 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# SPA/Single-File: alles auf index.html
|
|
location / {
|
|
try_files $uri /index.html;
|
|
}
|
|
|
|
# kleines Tool, aber sinnvolle Header
|
|
add_header X-Content-Type-Options "nosniff" always;
|
|
add_header Referrer-Policy "no-referrer" always;
|
|
gzip on;
|
|
gzip_types text/html text/css application/javascript image/svg+xml;
|
|
}
|