summaryrefslogtreecommitdiff
path: root/srv/src/cmd
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-20 14:30:09 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-20 14:30:26 -0600
commitaf434077ef3a971494fb0bc69ec9617c3b365abd (patch)
tree2a7c47c9450c2a6b5ac5bcae5c17b33f9a326db9 /srv/src/cmd
parent16cfbd19157df76e7296dddb287412f1099feb33 (diff)
Implement image macro for rendering images
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)