Remove OAuth2ServerURL
This commit is contained in:
parent
2422b739f5
commit
fdf53dd4be
|
@ -1,7 +1,7 @@
|
||||||
# PR-Deployer help Gitea to run some PR as a gitea instance for easier testing.
|
# 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
|
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.
|
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
|
The project aims to do that. It will allow the users who has write permission to
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
ServiceType: github
|
ServiceType: github
|
||||||
RepoURL: https://github.com/go-gitea/gitea
|
RepoURL: https://github.com/go-gitea/gitea
|
||||||
OAuth2:
|
OAuth2:
|
||||||
ServerURL: https://github.com
|
|
||||||
ClientID: xxxxxx
|
ClientID: xxxxxx
|
||||||
ClientSecret: xxxxxxxx
|
ClientSecret: xxxxxxxx
|
||||||
CallbackURL: http://localhost:3001
|
CallbackURL: http://localhost:3001
|
||||||
|
|
|
@ -76,10 +76,7 @@ func Init() error {
|
||||||
if OAuth2CallbackURL == "" {
|
if OAuth2CallbackURL == "" {
|
||||||
return errors.New("OAuth2CallbackURL cannot be empty")
|
return errors.New("OAuth2CallbackURL cannot be empty")
|
||||||
}
|
}
|
||||||
OAuth2ServerURL = viper.GetString("OAuth2.ServerURL")
|
OAuth2ServerURL = BaseURL
|
||||||
if OAuth2ServerURL == "" {
|
|
||||||
return errors.New("OAuth2ServerURL cannot be empty")
|
|
||||||
}
|
|
||||||
|
|
||||||
OAuth2ClientID = viper.GetString("OAuth2.ClientID")
|
OAuth2ClientID = viper.GetString("OAuth2.ClientID")
|
||||||
if OAuth2ClientID == "" {
|
if OAuth2ClientID == "" {
|
||||||
|
|
Loading…
Reference in New Issue