feat: move custom logo setting to api
This commit is contained in:
parent
d7dc209f15
commit
db2ec45378
@ -60,6 +60,8 @@ service:
|
|||||||
demomode: false
|
demomode: false
|
||||||
# Allow changing the logo and other icons based on various occasions throughout the year.
|
# Allow changing the logo and other icons based on various occasions throughout the year.
|
||||||
allowiconchanges: true
|
allowiconchanges: true
|
||||||
|
# Allow using a custom logo via external URL.
|
||||||
|
customlogourl: ''
|
||||||
|
|
||||||
sentry:
|
sentry:
|
||||||
# If set to true, enables anonymous error tracking of api errors via Sentry. This allows us to gather more
|
# If set to true, enables anonymous error tracking of api errors via Sentry. This allows us to gather more
|
||||||
|
@ -23,8 +23,6 @@
|
|||||||
// It has to be the full url, including the last /api/v1 part and port.
|
// It has to be the full url, including the last /api/v1 part and port.
|
||||||
// You can change this if your api is not reachable on the same port as the frontend.
|
// You can change this if your api is not reachable on the same port as the frontend.
|
||||||
window.API_URL = 'http://localhost:3456/api/v1'
|
window.API_URL = 'http://localhost:3456/api/v1'
|
||||||
// Allow using a custom logo via external URL.
|
|
||||||
window.CUSTOM_LOGO_URL = ''
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -63,6 +63,7 @@ const (
|
|||||||
ServiceEnableUserDeletion Key = `service.enableuserdeletion`
|
ServiceEnableUserDeletion Key = `service.enableuserdeletion`
|
||||||
ServiceMaxAvatarSize Key = `service.maxavatarsize`
|
ServiceMaxAvatarSize Key = `service.maxavatarsize`
|
||||||
ServiceAllowIconChanges Key = `service.allowiconchanges`
|
ServiceAllowIconChanges Key = `service.allowiconchanges`
|
||||||
|
ServiceCustomLogoURL Key = `service.customlogourl`
|
||||||
|
|
||||||
SentryEnabled Key = `sentry.enabled`
|
SentryEnabled Key = `sentry.enabled`
|
||||||
SentryDsn Key = `sentry.dsn`
|
SentryDsn Key = `sentry.dsn`
|
||||||
|
@ -79,7 +79,7 @@ func serveIndexFile(c echo.Context, assetFs http.FileSystem) (err error) {
|
|||||||
if config.ServiceAllowIconChanges.GetBool() {
|
if config.ServiceAllowIconChanges.GetBool() {
|
||||||
data["ALLOW_ICON_CHANGES"] = "true"
|
data["ALLOW_ICON_CHANGES"] = "true"
|
||||||
}
|
}
|
||||||
data["CUSTOM_LOGO_URL"] = "" // TODO
|
data["CUSTOM_LOGO_URL"] = config.ServiceCustomLogoURL.GetString()
|
||||||
|
|
||||||
err = tmpl.Execute(&tplOutput, data)
|
err = tmpl.Execute(&tplOutput, data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user