From af434077ef3a971494fb0bc69ec9617c3b365abd Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 20 May 2022 14:30:09 -0600 Subject: Implement image macro for rendering images --- srv/src/cmd/mediocre-blog/main.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'srv/src/cmd') diff --git a/srv/src/cmd/mediocre-blog/main.go b/srv/src/cmd/mediocre-blog/main.go index f76188b..ce43c61 100644 --- a/srv/src/cmd/mediocre-blog/main.go +++ b/srv/src/cmd/mediocre-blog/main.go @@ -2,7 +2,6 @@ package main import ( "context" - "encoding/json" "os" "os/signal" "syscall" @@ -56,8 +55,6 @@ func main() { pathPrefix := cfg.String("path-prefix", "", "Prefix which is optionally applied to all URL paths rendered by the blog") - httpAuthUsersStr := cfg.String("http-auth-users", "{}", "JSON object with usernames as values and password hashes (produced by the hash-password binary) as values. Denotes users which are able to edit server-side data") - // initialization err := cfg.Init(ctx) @@ -131,11 +128,6 @@ func main() { postStore := post.NewStore(postSQLDB) postAssetStore := post.NewAssetStore(postSQLDB) - var httpAuthUsers map[string]string - if err := json.Unmarshal([]byte(*httpAuthUsersStr), &httpAuthUsers); err != nil { - logger.Fatal(ctx, "unmarshaling -http-auth-users", err) - } - httpParams.Logger = logger.WithNamespace("http") httpParams.PowManager = powMgr httpParams.PathPrefix = *pathPrefix @@ -144,7 +136,6 @@ func main() { httpParams.MailingList = ml httpParams.GlobalRoom = chatGlobalRoom httpParams.UserIDCalculator = chatUserIDCalc - httpParams.AuthUsers = httpAuthUsers logger.Info(ctx, "listening") httpAPI, err := http.New(httpParams) -- cgit v1.2.3