mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-23 04:56:01 +00:00
32 lines
802 B
Plaintext
32 lines
802 B
Plaintext
server {
|
|
listen 443 ssl;
|
|
server_name localhost;
|
|
ssl_certificate /opt/app/certs/selfsigned.crt;
|
|
ssl_certificate_key /opt/app/certs/selfsigned.key;
|
|
|
|
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:3001;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
}
|
|
|
|
# Set security headers
|
|
add_header X-Content-Type-Options nosniff;
|
|
add_header X-Frame-Options DENY;
|
|
add_header X-XSS-Protection "1; mode=block";
|
|
|
|
# Disable server version information
|
|
server_tokens off;
|
|
|
|
# Deny access to hidden files
|
|
location ~ /\. {
|
|
deny all;
|
|
access_log off;
|
|
log_not_found off;
|
|
}
|
|
} |