From 36c04c5ad37129b3edadb0f1a1bf0963821410ed Mon Sep 17 00:00:00 2001 From: Nemo Date: Mon, 9 Apr 2018 01:33:36 +0530 Subject: [PATCH] Server ubooquity over multiple domains --- docker/ubooquity.tf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docker/ubooquity.tf b/docker/ubooquity.tf index bd30ad1..1cdf71d 100644 --- a/docker/ubooquity.tf +++ b/docker/ubooquity.tf @@ -29,12 +29,15 @@ resource "docker_container" "ubooquity" { labels { "traefik.enable" = "true" - "traefik.admin.port" = 2203 - "traefik.admin.frontend.rule" = "Host:library.${var.domain}" + "traefik.admin.port" = 2203 + "traefik.admin.frontend.rule" = "Host:library.${var.domain}" + + # I do not trust the Ubooquity authentication + # it does some shady JS encryption "traefik.admin.frontend.auth.basic" = "${var.basic_auth}" "traefik.read.port" = 2202 - "traefik.read.frontend.rule" = "Host:read.${var.domain}" + "traefik.read.frontend.rule" = "Host:read.${var.domain},comics.${var.domain},books.${var.domain}" "traefik.read.frontend.headers.SSLTemporaryRedirect" = "true" "traefik.read.frontend.headers.STSSeconds" = "2592000"