fix(gts): template the landing-page-user config

This commit is contained in:
Dan Anglin 2023-07-28 16:00:55 +01:00
parent da62c220b6
commit 55b53c78e5
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
3 changed files with 3 additions and 2 deletions

2
config

@ -1 +1 @@
Subproject commit 3d98dde30afe04341c823309775c8248ac637d7e Subproject commit 5ae33ebee3d4b434a8ab58b650791ab8311f629f

View file

@ -73,6 +73,7 @@ type gotosocialConfig struct {
DataContainerDirectory string `json:"dataContainerDirectory"` DataContainerDirectory string `json:"dataContainerDirectory"`
AccountsRegistrationOpen bool `json:"accountsRegistrationOpen"` AccountsRegistrationOpen bool `json:"accountsRegistrationOpen"`
AccountsAllowCustomCss bool `json:"accountsAllowCustomCss"` AccountsAllowCustomCss bool `json:"accountsAllowCustomCss"`
LandingPageUser string `json:"landingPageUser"`
} }
type woodpeckerConfig struct { type woodpeckerConfig struct {

View file

@ -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. # 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" # Examples: "admin"
# Default: "" # 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, # 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. # but you should *definitely* change this when running for real, or your server won't work at all.