From 0d0848cdefd00f3e29827661c5d235ccb7c9b7cb Mon Sep 17 00:00:00 2001 From: sysadmin Date: Wed, 6 May 2026 23:07:55 -0400 Subject: [PATCH] Actualizar README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit personalización del proyecto Arches --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index 5e8d57d..fb0c392 100644 --- a/README.md +++ b/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 * 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 following lists some information about the contents of this repo and how they fit together: