From 55b53c78e5a2a791fc954f38273dd7ba796c33dc Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Fri, 28 Jul 2023 16:00:55 +0100 Subject: [PATCH] fix(gts): template the landing-page-user config --- config | 2 +- magefiles/config.go | 1 + templates/gotosocial/config.yaml.gotmpl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config b/config index 3d98dde..5ae33eb 160000 --- a/config +++ b/config @@ -1 +1 @@ -Subproject commit 3d98dde30afe04341c823309775c8248ac637d7e +Subproject commit 5ae33ebee3d4b434a8ab58b650791ab8311f629f diff --git a/magefiles/config.go b/magefiles/config.go index aafd12d..2e898a1 100644 --- a/magefiles/config.go +++ b/magefiles/config.go @@ -73,6 +73,7 @@ type gotosocialConfig struct { DataContainerDirectory string `json:"dataContainerDirectory"` AccountsRegistrationOpen bool `json:"accountsRegistrationOpen"` AccountsAllowCustomCss bool `json:"accountsAllowCustomCss"` + LandingPageUser string `json:"landingPageUser"` } type woodpeckerConfig struct { diff --git a/templates/gotosocial/config.yaml.gotmpl b/templates/gotosocial/config.yaml.gotmpl index 88bc929..06cf092 100644 --- a/templates/gotosocial/config.yaml.gotmpl +++ b/templates/gotosocial/config.yaml.gotmpl @@ -43,7 +43,7 @@ application-name: "{{ .GoToSocial.Name }}" # String. The user that will be shown instead of the landing page. if no user is set, the landing page will be shown. # Examples: "admin" # Default: "" -landing-page-user: "dan" +landing-page-user: "{{ .GoToSocial.LandingPageUser }}" # String. Hostname that this server will be reachable at. Defaults to localhost for local testing, # but you should *definitely* change this when running for real, or your server won't work at all.