Actualizar README.md
personalización del proyecto Arches
This commit is contained in:
34
README.md
34
README.md
@@ -22,6 +22,40 @@ La idea es simple. Hay 3 contenedores que trabajan así:
|
|||||||
* Cron - for triggering certificates renewal once a day, triggers Certbot to try to renew certificates and Nginx to reload configuration on a daily basis
|
* Cron - for triggering certificates renewal once a day, triggers Certbot to try to renew certificates and Nginx to reload configuration on a daily basis
|
||||||
* The Nginx container uses updates symbolic links that point to either "dummy" certificates or Let's Encrypt certificates.
|
* The Nginx container uses updates symbolic links that point to either "dummy" certificates or Let's Encrypt certificates.
|
||||||
|
|
||||||
|
# Personalización 1: Agregar webapp adicional
|
||||||
|
Utilizando la función proxy_pass de la aplicación de nginx, se agrega servidores adicionales para complementar el proyecto con aplicaciones web (dominios) adicionales: Secuencia del procedimiento:
|
||||||
|
|
||||||
|
* Agregar el certificado SSL/TLS correspondiente a la aplicación adicional. Ej. `webapp1.dominio.com`
|
||||||
|
``` comando docker compose
|
||||||
|
|
||||||
|
```
|
||||||
|
* Agregar el archivo de configuración `webapp1.conf` al directorio de configuración de nginx.
|
||||||
|
```[docker_compose_dir]/nginx/webapp1.conf
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
|
||||||
|
server_name webapp1.dominio.com;
|
||||||
|
ssl_certificate /etc/letsencrypt/live/webapp1.dominio.com/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/webapp1.dominio.com/privkey.pem;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://[IP_Local]:[Puerto]/;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
```
|
||||||
|
* Modificar el archivo
|
||||||
|
```[docker_compose_dir]/nginx/Dockerfile
|
||||||
|
...
|
||||||
|
COPY default.conf /etc/nginx/conf.d/default.conf
|
||||||
|
COPY webapp1.conf /etc/nginx/conf.d/webapp1.conf
|
||||||
|
COPY options-ssl-nginx.conf /etc/nginx/
|
||||||
|
...
|
||||||
|
```
|
||||||
# The directories and files
|
# The directories and files
|
||||||
The following lists some information about the contents of this repo and how they fit together:
|
The following lists some information about the contents of this repo and how they fit together:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user