NGINX: Dynamische SSL-Konfiguration über Umgebungsvariable
- Aufteilung des NGINX-Templates in kbp_crm.nossl.conf.template (ohne SSL) und kbp_crm.ssl.conf.template (mit SSL) - Neues Skript 10-select-ssl.sh wählt Template zur Laufzeit basierend auf NGINX_USE_SSL (true/false) - Dockerfile: Vorbereitung für dynamische Template-Auswahl - docker-compose: Template-Verzeichnis auf /etc/nginx/configtemplates geändert, NGINX_USE_SSL als Umgebungsvariable hinzugefügt - .env: NGINX_USE_SSL=true standardmäßig aktiviert Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
1 parent
a6876fcc55
commit
ef563bad2f
7 files changed
+98
-41
No files matched your search
@@ -10,9 +10,10 @@ services:
|
||||
- ${NGINX_HOST_PORT}:4430
|
||||
volumes:
|
||||
- ${NGINX_STATIC_DIR}:/usr/share/nginx/html:ro
|
||||
- ${NGINX_CONFIG_TEMPLATE_DIR}:/etc/nginx/templates
|
||||
- ${NGINX_CONFIG_TEMPLATE_DIR}:/etc/nginx/configtemplates:ro
|
||||
- ${NGINX_CERTS}:/etc/certs
|
||||
environment:
|
||||
- NGINX_USE_SSL=${NGINX_USE_SSL:-true}
|
||||
- NGINX_CERT=${NGINX_CERT}
|
||||
- NGINX_CERT_KEY=${NGINX_CERT_KEY}
|
||||
- NGINX_SERVER_NAME=${NGINX_SERVER_NAME}
|
||||
|
||||
Reference in new issue
Block a user