all repos — homestead @ fadcc67ff52629041da2a8013c4fe786c6164cc9

Code for my website

remove publisher module

Alin
commit

fadcc67ff52629041da2a8013c4fe786c6164cc9

parent

8f79624bcfd229a5f2163f6660c80e06df145799

1 file changed, 0 insertions(+), 15 deletions(-)

changed files
M domain/web/website.go → domain/web/website.go
@@ -14,7 +14,6 @@ "alin.ovh/homestead/domain/analytics"
"alin.ovh/homestead/domain/analytics/goatcounter" "alin.ovh/homestead/domain/analytics/nullcounter" "alin.ovh/homestead/domain/content/fetcher" - "alin.ovh/homestead/domain/content/publisher" "alin.ovh/homestead/domain/identity" "alin.ovh/homestead/domain/identity/oidc" "alin.ovh/homestead/domain/web/server"
@@ -37,7 +36,6 @@ Timezone config.Timezone `conf:"default:Europe/Berlin"`
Goatcounter goatcounter.Options OIDC oidc.Config - OIDCClient publisher.OIDCClientConfig Redis *events.RedisOptions LiveReload *livereload.LiveReload `conf:"-"`
@@ -50,7 +48,6 @@ counter analytics.Counter
log *log.Logger reader storage.Reader identity *identity.Service - publisher *publisher.Service *server.App }
@@ -90,15 +87,6 @@ return nil, fault.Wrap(err, fmsg.With("could not create update listener"))
} website.identity = identity.New(opts.OIDC, log.Named("identity")) - website.publisher, err = publisher.New(&publisher.Options{ - Development: opts.Development, - BaseURL: opts.BaseURL.JoinPath("/admin/"), - OIDC: opts.OIDCClient, - }, log.Named("publisher")) - if err != nil { - log.Warn("could not initialise publisher", "error", err) - } - if opts.Goatcounter.URL == nil || opts.Goatcounter.Token == "" { if !opts.Development { log.Warn("in production without a goatcounter url/token")
@@ -167,9 +155,6 @@ mux := ihttp.NewServeMux(log.Named("http"))
mux.HandleError(website.ErrorHandler) mux.Handle("/", website) website.identity.RegisterHandlers(mux) - if website.publisher != nil { - website.publisher.RegisterHandlers(mux) - } if opts.Development { staticHandler := func(w http.ResponseWriter, r *http.Request) error {