From 4379136b69df22a2003638f06bcde0d95473241d Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 29 Nov 2022 10:12:56 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Ehugo.yml=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hugo.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hugo.yml b/hugo.yml index 0bd2a08..98239eb 100644 --- a/hugo.yml +++ b/hugo.yml @@ -25,8 +25,8 @@ [Service] Type=simple - WorkingDirectory=/home/docker/nextcloud.defiant.dedyn.io/nextcloud-data/data/olli/files/Projekte/hugo/gabosh-blog - ExecStart=hugo server --bind=192.168.41.1 --port=1313 --baseURL=https://blog.defiant.dedyn.io --buildDrafts --disableFastRender --appendPort=false + WorkingDirectory=/home/docker/nextcloud.{{ ansible_facts['hostname'] }}/nextcloud-data/data/olli/files/Projekte/hugo/gabosh-blog + ExecStart=hugo server --bind=192.168.41.1 --port=1313 --baseURL=https://blog.{{ ansible_facts['hostname'] }} --buildDrafts --disableFastRender --appendPort=false KillMode=process Restart=on-failure RestartPreventExitStatus=255 @@ -52,7 +52,7 @@ http: routers: hugo-blog: - rule: "Host(`blog.defiant.dedyn.io`) || Host(`blog.gabosh.net`)" + rule: "Host(`{{ ansible_facts['hostname'] }}`)" service: hugo-blog entryPoints: - "https"