Move nextcloud external access to traefik.

This commit is contained in:
2026-04-18 21:51:28 -05:00
parent 9961fe1ed4
commit 69b91a2e1d
4 changed files with 7 additions and 3 deletions

View File

@@ -5,4 +5,5 @@
- name: restart traefik - name: restart traefik
community.docker.docker_compose_v2: community.docker.docker_compose_v2:
project_src: "{{ traefik_base_dir }}" project_src: "{{ traefik_base_dir }}"
state: restarted state: present
recreate: always

View File

@@ -79,6 +79,7 @@ services:
- APACHE_SERVER_NAME=the-grid.local.mk-labs.cloud - APACHE_SERVER_NAME=the-grid.local.mk-labs.cloud
# Reverse proxy — lightning-lane IP only # Reverse proxy — lightning-lane IP only
- TRUSTED_PROXIES=10.1.71.35 - TRUSTED_PROXIES=10.1.71.35
- SKIP_DOMAIN_VALIDATION=true
- OVERWRITEPROTOCOL=https - OVERWRITEPROTOCOL=https
- OVERWRITECLIURL=https://the-grid.mk-labs.cloud - OVERWRITECLIURL=https://the-grid.mk-labs.cloud
networks: networks:

View File

@@ -24,6 +24,8 @@ services:
- "--entrypoints.websecure.http.tls.certResolver=cloudflare" - "--entrypoints.websecure.http.tls.certResolver=cloudflare"
- "--entrypoints.websecure.http.tls.domains[0].main=local.mk-labs.cloud" - "--entrypoints.websecure.http.tls.domains[0].main=local.mk-labs.cloud"
- "--entrypoints.websecure.http.tls.domains[0].sans=*.local.mk-labs.cloud" - "--entrypoints.websecure.http.tls.domains[0].sans=*.local.mk-labs.cloud"
- "--entrypoints.websecure.http.tls.domains[1].main=mk-labs.cloud"
- "--entrypoints.websecure.http.tls.domains[1].sans=*.mk-labs.cloud"
# ACME / Cloudflare DNS-01 # ACME / Cloudflare DNS-01
- "--certificatesresolvers.cloudflare.acme.email=ryan.blundon@protonmail.com" - "--certificatesresolvers.cloudflare.acme.email=ryan.blundon@protonmail.com"
- "--certificatesresolvers.cloudflare.acme.storage=/var/traefik/certs/acme.json" - "--certificatesresolvers.cloudflare.acme.storage=/var/traefik/certs/acme.json"

View File

@@ -1,7 +1,7 @@
http: http:
routers: routers:
nextcloud: nextcloud:
rule: "Host(`nextcloud.local.mk-labs.cloud`) || Host(`the-grid.local.mk-labs.cloud`)" rule: "Host(`nextcloud.local.mk-labs.cloud`) || Host(`the-grid.local.mk-labs.cloud`) || Host(`the-grid.mk-labs.cloud`)"
entryPoints: entryPoints:
- websecure - websecure
tls: tls:
@@ -21,4 +21,4 @@ http:
nextcloud: nextcloud:
loadBalancer: loadBalancer:
servers: servers:
- url: "http://the-grid.local.mk-labs.cloud:80" - url: "http://10.1.71.128:80"