Update main.yml

* fixed traefik routing 
* pointed traefik to user interface instead of files
This commit is contained in:
bcurran3 2022-08-14 18:00:13 -07:00 committed by GitHub
parent c0beb676c9
commit 89173f2395
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,8 +27,8 @@
restart_policy: unless-stopped
labels:
traefik.enable: "{{ netbootxyz_available_externally | string }}"
traefik.http.routers.netdata.rule: "Host(`{{ netbootxyz_hostname }}.{{ ansible_nas_domain }}`)"
traefik.http.routers.netdata.tls.certresolver: "letsencrypt"
traefik.http.routers.netdata.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.netdata.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.netdata.loadbalancer.server.port: "80"
traefik.http.routers.netbootxyz.rule: "Host(`{{ netbootxyz_hostname }}.{{ ansible_nas_domain }}`)"
traefik.http.routers.netbootxyz.tls.certresolver: "letsencrypt"
traefik.http.routers.netbootxyz.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.netbootxyz.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.netbootxyz.loadbalancer.server.port: "3000"