2019-02-25 21:05:03 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]80;
|
|
|
|
|
|
|
|
server_name marcleopold.isnet.uk;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_buffering off;
|
|
|
|
proxy_redirect http:://127.0.0.1:3003/ /;
|
|
|
|
proxy_pass http://127.0.0.1:3003/;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-02-25 18:51:58 +00:00
|
|
|
server {
|
|
|
|
|
|
|
|
server_name cms.marcleopold.isnet.uk;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_buffering off;
|
|
|
|
proxy_redirect http:://127.0.0.1:3004/ /;
|
|
|
|
proxy_pass http://127.0.0.1:3004/;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
}
|
|
|
|
|
|
|
|
listen [::]:443 ssl ipv6only=on; # managed by Certbot
|
|
|
|
listen 443 ssl; # managed by Certbot
|
|
|
|
ssl_certificate /etc/letsencrypt/live/cms.marcleopold.isnet.uk/fullchain.pem; # managed by Certbot
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/cms.marcleopold.isnet.uk/privkey.pem; # managed by Certbot
|
|
|
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
|
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
|
|
|
|
|
|
|
}
|
|
|
|
server {
|
|
|
|
if ($host = cms.marcleopold.isnet.uk) {
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
} # managed by Certbot
|
|
|
|
|
|
|
|
|
|
|
|
listen 80;
|
|
|
|
listen [::]80;
|
|
|
|
|
|
|
|
server_name cms.marcleopold.isnet.uk;
|
|
|
|
return 404; # managed by Certbot
|
|
|
|
}
|