Update all confgs to use global middlewares
This commit is contained in:
parent
a259572a20
commit
09825ca1d3
5 changed files with 9 additions and 4 deletions
|
@ -16,8 +16,9 @@
|
|||
src: "{{ item.src }}"
|
||||
dest: "traefik/{{ item.dest }}"
|
||||
loop:
|
||||
- { src: 'docker-compose.yml.j2', dest: 'docker-compose.yml' }
|
||||
- { src: 'config/traefik.yml.j2', dest: 'config/traefik.yml' }
|
||||
- { src: 'docker-compose.yml', dest: 'docker-compose.yml' }
|
||||
- { src: 'config/traefik.yml', dest: 'config/traefik.yml' }
|
||||
- { src: 'config/dynamic_conf.yaml', dest: 'config/dynamic_conf.yaml' }
|
||||
register: traefik_copy_templates_results
|
||||
|
||||
- name: Create proxy network
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
http:
|
||||
middlewares:
|
||||
private-network:
|
||||
ipWhiteList:
|
||||
sourceRange:
|
||||
- "{{ server.vpn.subnet }}"
|
||||
routers:
|
||||
octoPrint-secure:
|
||||
entryPoints:
|
|
@ -13,8 +13,7 @@ services:
|
|||
- "traefik.http.routers.whoami-secure.rule=Host(`whoami.{{ server.domain }}`)"
|
||||
- "traefik.http.routers.whoami-secure.tls=true"
|
||||
- "traefik.http.routers.whoami-secure.tls.certresolver=sslResolver"
|
||||
# - "traefik.http.routers.whoami-secure.service=whoami"
|
||||
# - "traefik.http.services.whoami.loadbalancer.server.port=9002"
|
||||
- "traefik.http.routers.whoami-secure.middlewares=private-network@http"
|
||||
- "traefik.docker.network=proxy"
|
||||
|
||||
networks:
|
||||
|
|
Loading…
Reference in a new issue