mirror of
https://github.com/thomiceli/opengist.git
synced 2025-06-11 13:07:13 +02:00
Client key and secret Oauth in config
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user