From 20d7b2c066352a68d781d380d2497f6aac24bcf3 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Sun, 31 Jul 2022 12:55:19 +0200 Subject: [PATCH] webserver: Add docs container --- container/webserver/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/container/webserver/default.nix b/container/webserver/default.nix index 3b42a03..97fc926 100644 --- a/container/webserver/default.nix +++ b/container/webserver/default.nix @@ -79,6 +79,25 @@ in }; }; }; + + nifoc-pw-docs = { + service = { + image = "ghcr.io/nifoc/nifoc.pw-docs:master"; + restart = "always"; + depends_on = [ "ipv6nat" ]; + networks = [ "webserver" ]; + labels = { + "traefik.enable" = "true"; + "traefik.http.routers.nifoc-pw-docs.rule" = "HostRegexp(`{subdomain:[a-z_]+}.nifoc.pw`)"; + "traefik.http.routers.nifoc-pw-docs.entrypoints" = "websecure"; + "traefik.http.routers.nifoc-pw-docs.tls" = "true"; + "traefik.http.routers.nifoc-pw-docs.tls.certresolver" = "cfresolver"; + "traefik.http.routers.nifoc-pw-docs.tls.domains[0].main" = "nifoc.pw"; + "traefik.http.routers.nifoc-pw-docs.tls.domains[0].sans" = "*.nifoc.pw"; + "traefik.http.routers.nifoc-pw-docs.middlewares" = "content-compression@file"; + }; + }; + }; }; networks.webserver = {