[Feature Request] Add to whitelist domains without redeploying #6941

Closed
opened 2025-11-02 07:11:46 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @kdumontnu on GitHub (Feb 27, 2021).

The option to whitelist email domains is a great feature in Gitea. However, updating the whitelist requires changing the config and restarting gitea.

Ideally, the web admin could view and update the whitelist in either User Accounts, User Emails, or Configuration
AND through an API or endpoint.
This will probably also require changing the config setting from EMAIL_DOMAIN_WHITELIST to something like DEFAULT_EMAIL_DOMAIN_WHITELIST or INITIAL_EMAIL_DOMAIN_WHITELIST.

The specific use-case is a company hosting Gitea as a service & adding a new customer domain.

If this functionality already exists please let me know and I'll gladly close this ticket.

Originally created by @kdumontnu on GitHub (Feb 27, 2021). The option to [whitelist email](https://docs.gitea.io/en-us/config-cheat-sheet/#service-service) domains is a great feature in Gitea. However, updating the whitelist requires changing the config and restarting gitea. Ideally, the web admin could view and update the whitelist in either `User Accounts`, `User Emails`, or `Configuration` AND through an API or endpoint. This will probably also require changing the config setting from `EMAIL_DOMAIN_WHITELIST` to something like `DEFAULT_EMAIL_DOMAIN_WHITELIST` or `INITIAL_EMAIL_DOMAIN_WHITELIST`. The specific use-case is a company hosting Gitea as a service & adding a new customer domain. If this functionality already exists please let me know and I'll gladly close this ticket.
GiteaMirror added the issue/duplicate label 2025-11-02 07:11:46 -06:00
Author
Owner

@lafriks commented on GitHub (Feb 28, 2021):

We should really start moving configuration to database imho

@lafriks commented on GitHub (Feb 28, 2021): We should really start moving configuration to database imho
Author
Owner

@techknowlogick commented on GitHub (Mar 6, 2021):

Closing as dupe as there is more generic ticket of updating config without restart

@techknowlogick commented on GitHub (Mar 6, 2021): Closing as dupe as there is more generic ticket of updating config without restart
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6941