50 lines
1.5 KiB
Plaintext
50 lines
1.5 KiB
Plaintext
server {
|
|
listen *:80;
|
|
|
|
|
|
server_name pve.realm.local;
|
|
|
|
|
|
index index.html index.htm index.php;
|
|
access_log /var/log/nginx/pve.realm.local.access.log combined;
|
|
error_log /var/log/nginx/pve.realm.local.error.log;
|
|
|
|
location / {
|
|
return 301 https://$server_name$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen *:443 ssl;
|
|
|
|
|
|
server_name pve.realm.local;
|
|
|
|
ssl_certificate /etc/nginx/ssl/certs/pve.realm.local/cert.pem;
|
|
ssl_certificate_key /etc/nginx/ssl/certs/pve.realm.local/key.pem;
|
|
ssl_protocols TLSv1.2;
|
|
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK;
|
|
|
|
index index.html index.htm index.php;
|
|
access_log /var/log/nginx/ssl-pve.realm.local.access.log combined;
|
|
error_log /var/log/nginx/ssl-pve.realm.local.error.log;
|
|
|
|
client_max_body_size 10M;
|
|
|
|
location / {
|
|
proxy_pass http://192.168.0.7:8006;
|
|
|
|
# These configuration options are required for WebSockets to work.
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_redirect off;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Host $server_name;
|
|
add_header Referrer-Policy "strict-origin-when-cross-origin";
|
|
}
|
|
}
|