Alex Tugarev 3ef29bf278 [papi] Add signing secret for JWTs
Praparation to use with `golang-jwt/jwt`
2023-01-30 11:15:37 +01:00

31 lines
1.2 KiB
Go

// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License.AGPL.txt in the project root for license information.
package config
import "github.com/gitpod-io/gitpod/common-go/baseserver"
type Configuration struct {
GitpodServiceURL string `json:"gitpodServiceUrl"`
BillingServiceAddress string `json:"billingServiceAddress,omitempty"`
// Address to use for creating new sessions
SessionServiceAddress string `json:"sessionServiceAddress"`
// StripeWebhookSigningSecretPath is a filepath to a secret used to validate incoming webhooks from Stripe
StripeWebhookSigningSecretPath string `json:"stripeWebhookSigningSecretPath"`
// OIDCClientJWTSigningSecretPath is a filepath to a secret used to sign and validate JWTs used for OIDC flows
OIDCClientJWTSigningSecretPath string `json:"oidcClientJWTSigningSecretPath"`
// Path to file which contains personal access token singing key
PersonalAccessTokenSigningKeyPath string `json:"personalAccessTokenSigningKeyPath"`
// Path to directory containing database configuration files
DatabaseConfigPath string `json:"databaseConfigPath"`
Server *baseserver.Configuration `json:"server,omitempty"`
}