marc-leopold/etc/nginx/sites-available/marcleopold.rayelliott.dev

73 lines
2.0 KiB
Plaintext
Raw Permalink Normal View History

2019-02-25 21:05:03 +00:00
server {
2020-05-03 12:10:54 +00:00
server_name leopold.rayelliott.dev;
2019-02-25 21:05:03 +00:00
location / {
proxy_buffering off;
2020-05-03 12:10:54 +00:00
proxy_redirect http:://127.0.0.1:3013/ /;
proxy_pass http://127.0.0.1:3013/;
2019-02-25 21:05:03 +00:00
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
2020-05-03 12:10:54 +00:00
ssl_certificate /etc/letsencrypt/live/leopold.rayelliott.dev/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/leopold.rayelliott.dev/privkey.pem; # managed by Certbot
2019-02-25 21:09:57 +00:00
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 {
2020-05-03 12:10:54 +00:00
server_name cms.leopold.rayelliott.dev;
2019-02-25 18:51:58 +00:00
location / {
proxy_buffering off;
2020-05-03 12:10:54 +00:00
proxy_redirect http:://127.0.0.1:3014/ /;
proxy_pass http://127.0.0.1:3014/;
2019-02-25 18:51:58 +00:00
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;
}
2020-05-03 12:10:54 +00:00
2019-02-25 18:51:58 +00:00
listen 443 ssl; # managed by Certbot
2020-05-03 12:10:54 +00:00
ssl_certificate /etc/letsencrypt/live/cms.leopold.rayelliott.dev/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/cms.leopold.rayelliott.dev/privkey.pem; # managed by Certbot
2019-02-25 18:51:58 +00:00
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
2020-05-03 12:10:54 +00:00
if ($host = leopold.rayelliott.dev) {
2019-02-25 18:51:58 +00:00
return 301 https://$host$request_uri;
} # managed by Certbot
2020-05-03 12:10:54 +00:00
server_name leopold.rayelliott.dev;
listen 80;
2019-02-25 18:51:58 +00:00
return 404; # managed by Certbot
2020-05-03 12:10:54 +00:00
2019-02-25 18:51:58 +00:00
}
2020-05-03 12:10:54 +00:00
2019-02-25 21:09:57 +00:00
server {
2020-05-03 12:10:54 +00:00
if ($host = cms.leopold.rayelliott.dev) {
2019-02-25 21:09:57 +00:00
return 301 https://$host$request_uri;
} # managed by Certbot
2020-05-03 12:10:54 +00:00
server_name cms.leopold.rayelliott.dev;
listen 80;
2019-02-25 21:09:57 +00:00
return 404; # managed by Certbot
}