From 3e523bd04b32c49d6421f50cbdf0cf82def79296 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 25 Apr 2020 12:15:28 +0100 Subject: [PATCH] Remove traefik subdomain --- ansible/roles/docker/vars/pihole.yml | 1 - ansible/roles/traefik/files/file-provider.yml | 23 ------------------- ansible/roles/traefik/files/traefik.yml | 4 ++-- terraform/jakehoward.tech.tf | 8 ------- 4 files changed, 2 insertions(+), 34 deletions(-) diff --git a/ansible/roles/docker/vars/pihole.yml b/ansible/roles/docker/vars/pihole.yml index 44cf2fa..592adf1 100644 --- a/ansible/roles/docker/vars/pihole.yml +++ b/ansible/roles/docker/vars/pihole.yml @@ -1,6 +1,5 @@ internal_hostnames: - duplicati.jakehoward.tech - - traefik.jakehoward.tech - deluge.jakehoward.tech - speed.jakehoward.tech - pihole.jakehoward.tech diff --git a/ansible/roles/traefik/files/file-provider.yml b/ansible/roles/traefik/files/file-provider.yml index b4d7767..cc5615e 100644 --- a/ansible/roles/traefik/files/file-provider.yml +++ b/ansible/roles/traefik/files/file-provider.yml @@ -18,26 +18,3 @@ http: - web middlewares: - hsts - ping: - service: ping@internal - rule: Host(`traefik.jakehoward.tech`) && Path(`/ping/`) - middlewares: - - hsts - tls: - certResolver: le - dashboard: - service: dashboard@internal - rule: Host(`traefik.jakehoward.tech`) - middlewares: - - hsts - - internal-only - tls: - certResolver: le - api: - service: api@internal - rule: Host(`traefik.jakehoward.tech`) && PathPrefix(`/api`) - middlewares: - - hsts - - internal-only - tls: - certResolver: le diff --git a/ansible/roles/traefik/files/traefik.yml b/ansible/roles/traefik/files/traefik.yml index 9f2b718..999e955 100644 --- a/ansible/roles/traefik/files/traefik.yml +++ b/ansible/roles/traefik/files/traefik.yml @@ -15,8 +15,7 @@ entryPoints: trustedIPs: - "{{ wireguard.cidr }}" -ping: - manualRouting: true +ping: {} providers: docker: @@ -28,6 +27,7 @@ providers: api: dashboard: true + insecure: true certificatesResolvers: le: diff --git a/terraform/jakehoward.tech.tf b/terraform/jakehoward.tech.tf index cc25a05..7058912 100644 --- a/terraform/jakehoward.tech.tf +++ b/terraform/jakehoward.tech.tf @@ -68,14 +68,6 @@ resource "cloudflare_record" "jakehowardtech_ttrss" { ttl = 1 } -resource "cloudflare_record" "jakehowardtech_traefik" { - zone_id = cloudflare_zone.jakehowardtech.id - name = "traefik" - value = vultr_server.casey.main_ip - type = "A" - ttl = 1 -} - resource "cloudflare_record" "jakehowardtech_speed" { zone_id = cloudflare_zone.jakehowardtech.id name = "speed"