Client key and secret Oauth in config

This commit is contained in:
Thomas Miceli
2023-04-17 19:11:32 +02:00
parent a6c5696ceb
commit 4008b7ce38
5 changed files with 64 additions and 16 deletions

View File

@ -35,6 +35,13 @@ type config struct {
SshPort string `yaml:"ssh.port"`
SshExternalDomain string `yaml:"ssh.external-domain"`
SshKeygen string `yaml:"ssh.keygen-executable"`
GithubClientKey string `yaml:"github.client-key"`
GithubSecret string `yaml:"github.secret"`
GiteaClientKey string `yaml:"gitea.client-key"`
GiteaSecret string `yaml:"gitea.secret"`
GiteaUrl string `yaml:"gitea.url"`
}
func configWithDefaults() (*config, error) {
@ -58,6 +65,8 @@ func configWithDefaults() (*config, error) {
c.SshPort = "2222"
c.SshKeygen = "ssh-keygen"
c.GiteaUrl = "http://gitea.com"
return c, nil
}