Use nginx role with custom nginx.conf support

This commit is contained in:
julian 2023-04-15 18:13:22 +02:00
commit 65ac14c18b
23 changed files with 378 additions and 115 deletions

View file

@ -1,5 +1,5 @@
esphome__version: "2023.3.2"
nginx__configs:
nginx__version_spec: ""
nginx__configurations:
- name: esphome
content: "{{ lookup('ansible.builtin.file', 'configs/esphome/nginx/esphome.conf') }}"
nginx__enable_https_redirect: true

View file

@ -48,8 +48,8 @@ ola__configs:
- name: ola-usbserial
content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-usbserial.conf') }}"
foobazdmx__art_net_host: localhost
nginx__enable_https_redirect: false
nginx__configs:
nginx__version_spec: ""
nginx__configurations:
- name: light.ccchh.net
content: "{{ lookup('ansible.builtin.file', 'configs/light/nginx/light.ccchh.net.conf') }}"
- name: http_handler

View file

@ -1,4 +1,5 @@
nginx__enable_https_redirect: false
nginx__configs:
nginx__version_spec: ""
nginx__deploy_redirect_conf: false
nginx__configurations:
- name: acme_challenge
content: "{{ lookup('ansible.builtin.file', 'configs/public-reverse-proxy/nginx/acme_challenge.conf') }}"

View file

@ -10,7 +10,7 @@ zigbee2mqtt__network_key: !vault |
30303031306635313764323434333465353465366633376432326563666264386431623335613636
64643434666433363865
zigbee2mqtt__config: "{{ lookup('ansible.builtin.template', 'configs/zigbee2mqtt/zigbee2mqtt/configuration.yaml.j2') }}"
nginx__configs:
nginx__version_spec: ""
nginx__configurations:
- name: zigbee2mqtt
content: "{{ lookup('ansible.builtin.file', 'configs/zigbee2mqtt/nginx/zigbee2mqtt.conf') }}"
nginx__enable_https_redirect: true