move server-specific configuration to environment variables
1 file changed, 4 insertions(+), 4 deletions(-)
changed files
M domain/content/publisher/app.go → domain/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")) }