changes:
- gitea-only now
- simplify code
- add docker image
- update deps
This commit is contained in:
2023-02-05 14:34:48 +01:00
parent 9909a9175c
commit a67699f9d2
10 changed files with 252 additions and 349 deletions

2
env/.gitignore vendored
View File

@ -1,4 +1,4 @@
*
!.gitignore
!sample.config
!teabag.env.example

44
env/sample.config vendored
View File

@ -1,44 +0,0 @@
[runtime]
environment="development"
[server]
host="localhost"
port="3000"
sessionSecret="super-secret"
publicProto="https"
public="oauth.example.com"
publicPort="443"
# Delete if not in use
[gitea]
key=
secret=
baseURL="https://gitea.yourcompany.com"
authURI=
accessTokenURI=
userURI=
callbackURI="https://oauth.example.com/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"

11
env/teabag.env.example vendored Normal file
View File

@ -0,0 +1,11 @@
HOST=localhost
PORT=3000
SESSION_SECRET=super-secret
GITEA_KEY=
GITEA_SECRET=
GITEA_BASE_URL=https://gitea.yourcompany.com
GITEA_AUTH_URI=
GITEA_TOKEN_URI=
GITEA_USER_URI=
CALLBACK_URI=https://oauth.example.com/callback