summaryrefslogtreecommitdiff
path: root/srv/src/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'srv/src/cmd')
-rw-r--r--srv/src/cmd/mediocre-blog/main.go9
1 files changed, 0 insertions, 9 deletions
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)