diff --git a/ansible/roles/traefik/files/docker-compose.yml b/ansible/roles/traefik/files/docker-compose.yml index cc4a8a6..af352b9 100644 --- a/ansible/roles/traefik/files/docker-compose.yml +++ b/ansible/roles/traefik/files/docker-compose.yml @@ -16,7 +16,6 @@ services: - "{{ private_ip }}:8080:8080" depends_on: - docker_proxy - - shenanigans networks: - default - traefik @@ -35,16 +34,6 @@ services: logging: driver: none - shenanigans: - image: nginx:alpine - restart: unless-stopped - volumes: - - /opt/traefik/nginx.conf:/etc/nginx/conf.d/default.conf:ro - networks: - - proxy_private - logging: - driver: none - certs: image: slocomptech/traefik-cert-extract:latest restart: unless-stopped diff --git a/ansible/roles/traefik/files/file-provider-main.yml b/ansible/roles/traefik/files/file-provider-main.yml index 9db0547..013625a 100644 --- a/ansible/roles/traefik/files/file-provider-main.yml +++ b/ansible/roles/traefik/files/file-provider-main.yml @@ -8,7 +8,3 @@ http: headers: customResponseHeaders: Permissions-Policy: interest-cohort=() - - shenanigans: - forwardAuth: - address: http://shenanigans diff --git a/ansible/roles/traefik/files/nginx.conf b/ansible/roles/traefik/files/nginx.conf deleted file mode 100644 index 9b40f9e..0000000 --- a/ansible/roles/traefik/files/nginx.conf +++ /dev/null @@ -1,14 +0,0 @@ -# NOTE: Use `$http_x_forwarded_host` intead of `$host`. - -server { - listen 80 default_server; - - # Get IP correctly - real_ip_header X-Forwarded-For; - set_real_ip_from 0.0.0.0/0; - - # Allow everything through by default - location / { - return 200; - } -} diff --git a/ansible/roles/traefik/tasks/main.yml b/ansible/roles/traefik/tasks/main.yml index 7770be5..bb17076 100644 --- a/ansible/roles/traefik/tasks/main.yml +++ b/ansible/roles/traefik/tasks/main.yml @@ -106,18 +106,3 @@ - name: fail2ban include_tasks: fail2ban.yml when: with_fail2ban - -- name: Check for nginx config - stat: - path: /opt/traefik/nginx.conf - register: nginx_file - become: true - -- name: Create nginx config, if it doesn't exist already - template: - src: files/nginx.conf - dest: /opt/traefik/nginx.conf - mode: "0600" - when: not nginx_file.stat.exists - notify: restart traefik - become: true