marc-leopold/etc/nginx/sites-available/marcleopold

74 lines
2.1 KiB
Plaintext
Raw Normal View History

2019-02-25 21:05:03 +00:00
server {
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 21:09:57 +00:00
listen [::]:443 ssl; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/marcleopold.isnet.uk/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/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
2019-02-25 21:05:03 +00:00
}
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
}
2019-02-25 21:09:57 +00:00
server {
if ($host = marcleopold.isnet.uk) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
listen [::]80;
server_name marcleopold.isnet.uk;
return 404; # managed by Certbot
}