Skip to main content

Gitea Authentication

In Settings / Applications, add an OAuth application with the following settings:

FieldValue
Application nameMeli
Authorization callback URL<meli-server-url>/auth/gitea/callback

Copy your Client ID and Client secret.

info

If you've changed REFRESH_TOKEN_EXPIRATION_TIME in your Gitea config, make sure to set MELI_REFRESH_TOKEN_EXPIRATION_TIME with that same value. We've opened an issue on their repo to improve this.

Now, you can update your docker-compose.yml:

# ...
services:
# ...
server:
# ...
environment:
# ...
MELI_GITEA_CLIENT_ID: <your-gitea-client-id>
MELI_GITEA_CLIENT_SECRET: <your-gitea-client-secret>
MELI_GITEA_URL: http://10.0.1.23:3003
# restrict access to your Gitea organizations
MELI_GITEA_ORGS: my-org-1,my-org-2