feat: add backend config
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
# Template para sitio estático con proxy inverso
|
||||
server {
|
||||
listen 80;
|
||||
server_name subdomain.domain.com;
|
||||
server_name ruteo.sanpabloalimentos.cl;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
@@ -22,7 +22,7 @@ server {
|
||||
### **Archivo después de aplicar SSL con Certbot**
|
||||
```nginx
|
||||
server {
|
||||
server_name subdomain.domain.com;
|
||||
server_name ruteo.sanpabloalimentos.cl;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3000/;
|
||||
@@ -34,19 +34,19 @@ server {
|
||||
}
|
||||
|
||||
listen 443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/subdomain.domain.com/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/subdomain.domain.com/privkey.pem; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/ruteo.sanpabloalimentos.cl/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/ruteo.sanpabloalimentos.cl/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 = subdomain.domain.com) {
|
||||
if ($host = ruteo.sanpabloalimentos.cl) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
listen 80;
|
||||
server_name subdomain.domain.com;
|
||||
return 404; # managed by Certbot
|
||||
listen 80;
|
||||
server_name ruteo.sanpabloalimentos.cl;
|
||||
return 404; # managed by Certbot
|
||||
}
|
||||
```
|
||||
# **Servidor Web**
|
||||
|
||||
Reference in New Issue
Block a user