all repos — homestead @ 741cc4bfb98b4a40dc5412e4430b86acfbdc4738

Code for my website

move server-specific configuration to environment variables

Alan Pearce
commit

741cc4bfb98b4a40dc5412e4430b86acfbdc4738

parent

4aaac996a993238a24b5e58ac7394fcec6d8a285

1 file changed, 4 insertions(+), 4 deletions(-)

changed files
M domain/content/publisher/app.godomain/content/publisher/app.go
@@ -16,15 +16,15 @@ "alin.ovh/homestead/shared/config"
ihttp "alin.ovh/homestead/shared/http" ) -type OIDCOptions struct { - Host config.URL +type OIDCClientConfig struct { + URL config.URL ClientID string ClientSecret string } type Options struct { Development bool `conf:"-"` - OIDC OIDCOptions + OIDC OIDCClientConfig BaseURL *config.URL VCSRemoteURL *config.URL `conf:"default:https://git.alin.ovh/website"` }
@@ -40,7 +40,7 @@ }
func New(opts *Options, log *log.Logger) (*Service, error) { ctx := context.Background() - provider, err := oidc.NewProvider(ctx, opts.OIDC.Host.String()) + provider, err := oidc.NewProvider(ctx, opts.OIDC.URL.String()) if err != nil { return nil, fault.Wrap(err, fmsg.With("failed to create OIDC provider")) }