From d56496aab28efb7238852b82bfb9ade57e64ab0b Mon Sep 17 00:00:00 2001 From: Jeff Near Date: Mon, 6 Apr 2026 23:12:57 +0000 Subject: [PATCH] Enable logging Add synamic configs for authentik + gitea --- custom/authentik.yml | 18 ++++++++++++++++++ custom/gitea_conf.yml | 16 ++++++++++++++++ traefik.yml | 2 +- 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 custom/authentik.yml create mode 100644 custom/gitea_conf.yml diff --git a/custom/authentik.yml b/custom/authentik.yml new file mode 100644 index 0000000..21442a3 --- /dev/null +++ b/custom/authentik.yml @@ -0,0 +1,18 @@ +http: + middlewares: + authentik: + forwardAuth: + address: "http://authentik-server:9000/outpost.goauthentik.io/auth/traefik" + trustForwardHeader: true + authResponseHeaders: + - X-authentik-username + - X-authentik-groups + - X-authentik-email + - X-authentik-name + - X-authentik-uid + - X-authentik-jwt + - X-authentik-meta-jwks + - X-authentik-meta-outpost + - X-authentik-meta-provider + - X-authentik-meta-app + - X-authentik-meta-version diff --git a/custom/gitea_conf.yml b/custom/gitea_conf.yml new file mode 100644 index 0000000..45f0d07 --- /dev/null +++ b/custom/gitea_conf.yml @@ -0,0 +1,16 @@ +http: + routers: + gitea: + entryPoints: + - websecure + service: gitea + rule: "Host(`gitea.nearfuture.industries`)" + tls: + certresolver: myresolver + #middlewares: + #- authentik@file + services: + gitea: + loadBalancer: + servers: + - url: "http://192.168.1.101:8418" diff --git a/traefik.yml b/traefik.yml index 8327d4c..f5d6909 100644 --- a/traefik.yml +++ b/traefik.yml @@ -43,7 +43,7 @@ log: # Optional # Default: "ERROR" # - # level: DEBUG + level: DEBUG # Sets the filepath for the traefik log. If not specified, stdout will be used. # Intermediate directories are created if necessary.