Remove OAuth2ServerURL

This commit is contained in:
Lunny Xiao 2021-10-27 15:28:41 +08:00
parent 2422b739f5
commit fdf53dd4be
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
3 changed files with 2 additions and 6 deletions

View File

@ -1,7 +1,7 @@
# PR-Deployer help Gitea to run some PR as a gitea instance for easier testing.
Since sometiems we need to check if the PR is like what expected in the UI and don't
want to run it locally, We can deployer the PR as a service as https://try-pr-<index>.gitea.io.
want to run it locally, We can deployer the PR as a service as https://try-pr-{index}.gitea.io.
If the process is almost automatically, it will help all contributors.
The project aims to do that. It will allow the users who has write permission to

View File

@ -1,7 +1,6 @@
ServiceType: github
RepoURL: https://github.com/go-gitea/gitea
OAuth2:
ServerURL: https://github.com
ClientID: xxxxxx
ClientSecret: xxxxxxxx
CallbackURL: http://localhost:3001

View File

@ -76,10 +76,7 @@ func Init() error {
if OAuth2CallbackURL == "" {
return errors.New("OAuth2CallbackURL cannot be empty")
}
OAuth2ServerURL = viper.GetString("OAuth2.ServerURL")
if OAuth2ServerURL == "" {
return errors.New("OAuth2ServerURL cannot be empty")
}
OAuth2ServerURL = BaseURL
OAuth2ClientID = viper.GetString("OAuth2.ClientID")
if OAuth2ClientID == "" {