-
-
Notifications
You must be signed in to change notification settings - Fork 959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expose SOCIAL_AUTH_GITEA config options for docker deployment #8205
Comments
This issue seems to be a good fit for newbie contributors. You are welcome to contribute to Weblate! Don't hesitate to ask any questions you would have while implementing this. You can learn about how to get started in our contributors documentation. |
@nijel hey I'd like to give this a try |
@Revortni you're welcome! |
@nijel The issue mentions a settings-override.py file but i couldn't find it in the code, nor could i find SOCIAL_AUTH_GITEA used anywhere. Am i missing something here? |
The override settings is needed right now when the environment configuration is not supported. You should add something like what is used for other services: weblate/weblate/settings_docker.py Lines 293 to 299 in 2b93063
|
ok so i looked into the social core documentation for gitea and it seems only the below code would suffice. Uncertain if the api url will be needed |
@nijel hey there. any comments on this? |
You also need to add the backend to AUTHENTICATION_BACKENDS (see the above example). |
The URL is most likely needed as well to specify the gitea server URL. |
As you can see below the documentation does not specify any authentication backend for Gitea. |
Ok will add a config for this too |
@nijel I've mentioned my findings about the authentication backend above |
It's generic way of enabling backends. Just look at the BitBucket example I've posted in #8205 (comment). Also, it would be great if you could actually test that the integration works... |
Thank you for your report; the issue you have reported has just been fixed.
|
Describe the problem
We'd like to configure gitea oauth for a docker deployment. This currently requires using
settings-override.py
, it would be nice if it instead can be exposed like all the other oauth settings viaWEBLATE_*
env vars.Describe the solution you'd like
see above
Describe alternatives you've considered
No response
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: