1
0
mirror of https://github.com/denyskon/teabag synced 2025-03-22 13:50:23 +01:00

inital service created:

- Use settings from ./env/config file
- Use providers for gitea, gitlab, github, bitbucket
This commit is contained in:
donskifarrell
2021-09-03 16:47:37 +08:00
commit ccb516f8ee
6 changed files with 912 additions and 0 deletions

4
env/.gitignore vendored Normal file

@ -0,0 +1,4 @@
*
!.gitignore
!sample.config

41
env/sample.config vendored Normal file

@ -0,0 +1,41 @@
[runtime]
environment="development"
[server]
host="localhost"
port="3000"
sessionSecret="super-secret"
# Delete if not in use
[gitea]
key=
secret=
baseURL="https://gitea.yourcompany.com"
authURI=
accessTokenURI=
userURI=
callbackURI="http://localhost:3000/callback/gitea"
# Delete if not in use
[gitlab]
key=
secret=
baseURL=
authURI="oauth/authorize"
accessTokenURI="oauth/token"
userURI="api/v3/user"
callbackURI="http://localhost:3000/callback/gitlab"
# Delete if not in use
[github]
key=
secret=
baseURL=
callbackURI="http://localhost:3000/callback/github"
# Delete if not in use
[bitbucket]
key=
secret=
baseURL=
callbackURI="http://localhost:3000/callback/bitbucket"