add oauth to gitea

This commit is contained in:
vincent 2024-10-19 16:28:25 +02:00
parent c000933f66
commit b2710aab2f
3 changed files with 20 additions and 2 deletions

View File

@ -181,6 +181,19 @@ identity_providers:
- 'email' - 'email'
userinfo_signed_response_alg: 'none' userinfo_signed_response_alg: 'none'
token_endpoint_auth_method: 'client_secret_basic' token_endpoint_auth_method: 'client_secret_basic'
- client_id: 'gitea'
client_name: 'gitea'
client_secret:{{ with secret "secrets/data/authelia/gitea"}} {{ .Data.data.hash }} {{end}}
public: false
authorization_policy: 'one_factor'
redirect_uris:
- 'https://git.ducamps.eu/user/oauth2/authelia/callback'
scopes:
- 'openid'
- 'profile'
- 'email'
userinfo_signed_response_alg: 'none'
token_endpoint_auth_method: 'client_secret_basic'
log: log:
level: 'trace' level: 'trace'

View File

@ -81,7 +81,11 @@ job "git" {
GITEA__database__HOST = "active.db.service.consul" GITEA__database__HOST = "active.db.service.consul"
GITEA__database__NAME = "gitea" GITEA__database__NAME = "gitea"
GITEA__database__USER = "gitea" GITEA__database__USER = "gitea"
GITEA__service__DISABLE_REGISTRATION = "true" GITEA__service__DISABLE_REGISTRATION = "false"
GITEA__service__ALLOW_ONLY_EXTERNAL_REGISTRATION = "true"
GITEA__service__SHOW_REGISTRATION_BUTTON = "false"
GITEA__openid__ENABLE_OPENID_SIGNIN = "false"
GITEA__openid__ENABLE_OPENID_SIGNUP = "true"
GITEA__repository__ROOT = "/data/gitea-repositories" GITEA__repository__ROOT = "/data/gitea-repositories"
GITEA__server__APP_DATA_PATH = "/data" GITEA__server__APP_DATA_PATH = "/data"
GITEA__server__LFS_CONTENT_PATH = "/data/lfs" GITEA__server__LFS_CONTENT_PATH = "/data/lfs"

View File

@ -73,7 +73,8 @@ def main() -> None:
"authelia/immich", "authelia/immich",
"authelia/mealie", "authelia/mealie",
"authelia/grafana", "authelia/grafana",
"authelia/vikunja" "authelia/vikunja",
"authelia/gitea"
] ]
token=os.getenv('VAULT_TOKEN',"") token=os.getenv('VAULT_TOKEN',"")