parent
458626c0db
commit
ff5dbc7112
@ -1,29 +0,0 @@
|
||||
server {
|
||||
|
||||
server_name dev.irregular-apocalypse.kejadlen.dev;
|
||||
|
||||
# Redirect non-https traffic to https
|
||||
if ($scheme != "https") {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:3000/;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
server_name irregular-apocalypse.kejadlen.dev;
|
||||
|
||||
# Redirect non-https traffic to https
|
||||
if ($scheme != "https") {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
location /dev {
|
||||
proxy_pass http://localhost:3000/;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
server {
|
||||
|
||||
server_name dev.irregular-apocalypse.kejadlen.dev;
|
||||
|
||||
# Redirect non-https traffic to https
|
||||
if ($scheme != "https") {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:3000/;
|
||||
}
|
||||
|
||||
listen 80;
|
||||
|
||||
listen 443 ssl;
|
||||
ssl_certificate /etc/letsencrypt/live/dev.irregular-apocalypse.kejadlen.dev/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/dev.irregular-apocalypse.kejadlen.dev/privkey.pem;
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,22 @@
|
||||
server {
|
||||
|
||||
server_name irregular-apocalypse.kejadlen.dev;
|
||||
|
||||
# Redirect non-https traffic to https
|
||||
if ($scheme != "https") {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
location /dev {
|
||||
proxy_pass http://localhost:3000/;
|
||||
}
|
||||
|
||||
listen 80;
|
||||
|
||||
listen 443 ssl;
|
||||
ssl_certificate /etc/letsencrypt/live/irregular-apocalypse.kejadlen.dev/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/irregular-apocalypse.kejadlen.dev/privkey.pem;
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||
|
||||
}
|
Loading…
Reference in new issue