Propagate env var and trim trailing slash

This commit is contained in:
Jaz Volpert
2024-10-04 13:43:15 -07:00
parent b0fe2c6c9a
commit eb5a6c8911
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -60,6 +60,7 @@ func serve(cctx *cli.Context) error {
basicAuthPassword := cctx.String("basic-auth-password")
corsOrigins := cctx.StringSlice("cors-allowed-origins")
staticCDNHost := cctx.String("static-cdn-host")
staticCDNHost = strings.TrimSuffix(staticCDNHost, "/")
// Echo
e := echo.New()