31 lines
882 B
Text
31 lines
882 B
Text
# /etc/nginx/conf.d/ksa.reinoud.cloud.conf
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name ksa.reinoud.cloud www.ksa.reinoud.cloud;
|
|
|
|
# Redirect all HTTP requests to HTTPS
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
server_name ksa.reinoud.cloud www.ksa.reinoud.cloud;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/ksa.reinoud.cloud/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/ksa.reinoud.cloud/privkey.pem;
|
|
|
|
# Optional: Use strong SSL settings
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:8080;
|
|
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-Proto $scheme;
|
|
}
|
|
}
|
|
|