development/build/configs/nginx/pterodocs.test.conf
2019-02-02 13:16:22 +01:00

23 lines
541 B
Plaintext

server {
listen 80;
index index.html;
server_name docs.pterodactyl.test;
root /srv/documentation/.vuepress/dist;
location / {
proxy_pass http://127.0.0.1:8080;
}
# security headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "same-origin" always;
add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always;
# . files
location ~ /\. {
deny all;
}
}