Add option to change where conf.d gets mounted on ingress

Whups
This commit is contained in:
Salt 2021-09-27 15:19:18 -05:00
parent a2d2d26d85
commit cfba2ec859
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ ingress_container_ports:
- 80:80
- 443:443
ingress_container_persist_dir: "/data/nginx-certbot"
ingress_container_config_mount: "/etc/nginx/user_conf.d"
ingress_container_timezone: America/Chicago
# Network configuration

View File

@ -19,4 +19,4 @@
ports: "{{ ingress_container_ports }}"
volumes:
- "{{ ingress_container_persist_dir }}/letsencrypt:/etc/letsencrypt"
- "{{ ingress_container_persist_dir }}/user_conf.d:/etc/nginx/user_conf.d:ro"
- "{{ ingress_container_persist_dir }}/user_conf.d:{{ ingress_container_config_mount }}:ro"