parent
3f32a21bca
commit
e93b521d97
@ -1,22 +1,29 @@
|
||||
server {
|
||||
|
||||
server_name irregular-apocalypse.kejadlen.dev;
|
||||
server_name dev.irregular-apocalypse.kejadlen.dev;
|
||||
|
||||
# Redirect non-https traffic to https
|
||||
if ($scheme != "https") {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
location /dev {
|
||||
location / {
|
||||
proxy_pass http://localhost:3000/;
|
||||
}
|
||||
|
||||
listen 80; # managed by Certbot
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
server_name irregular-apocalypse.kejadlen.dev;
|
||||
|
||||
listen 443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/irregular-apocalypse.kejadlen.dev/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/irregular-apocalypse.kejadlen.dev/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
|
||||
# Redirect non-https traffic to https
|
||||
if ($scheme != "https") {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
location /dev {
|
||||
proxy_pass http://localhost:3000/;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in new issue