Restructure
This commit is contained in:
parent
855f78f21a
commit
cc19cec4cd
2 changed files with 0 additions and 0 deletions
31
nginx/ksa.reinoud.cloud.conf
Normal file
31
nginx/ksa.reinoud.cloud.conf
Normal file
|
@ -0,0 +1,31 @@
|
|||
# /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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue