Skip to content

Commit 0f08855

Browse files
Mikaelajolheiser
authored andcommitted
faq: mention EMAIL_DOMAIN_WHITELIST on allowing email domains (#8198)
* faq: mention EMAIL_DOMAIN_WHITELIST on allowing email domains Signed-off-by: Mikaela Suomalainen <[email protected]> * faq: separate openid from allow/block email domain Signed-off-by: Mikaela Suomalainen <[email protected]> * faq: update ToC Signed-off-by: Mikaela Suomalainen <[email protected]> * Update docs/content/doc/help/faq.en-us.md Co-Authored-By: John Olheiser <[email protected]> * Update docs/content/doc/help/faq.en-us.md Co-Authored-By: John Olheiser <[email protected]>
1 parent a372363 commit 0f08855

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/content/doc/help/faq.en-us.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ Also see [Support Options]({{< relref "doc/help/seek-help.en-us.md" >}})
2828
* [What is Swagger?](#what-is-swagger)
2929
* [Adjusting your server for public/private use](#adjusting-your-server-for-public-private-use)
3030
* [Preventing spammers](#preventing-spammers)
31-
* [Only allow/block certain email domains](#only-allow-block-certain-email-domains)
31+
* [Only allow certain email domains](#only-allow-certain-email-domains)
32+
* [Only allow/block certain OpenID providers](#only-allow-block-certain-openid-providers)
3233
* [Issue only users](#issue-only-users)
3334
* [Enable Fail2ban](#enable-fail2ban)
3435
* [Adding custom themes](#how-to-add-use-custom-themes)
@@ -133,8 +134,11 @@ There are multiple things you can combine to prevent spammers.
133134
2. Setting `ENABLE_CAPTCHA` to `true` in your `app.ini` and properly configuring `RECAPTCHA_SECRET` and `RECAPTCHA_SITEKEY`
134135
3. Settings `DISABLE_REGISTRATION` to `true` and creating new users via the [CLI]({{< relref "doc/usage/command-line.en-us.md" >}}), [API]({{< relref "doc/advanced/api-usage.en-us.md" >}}), or Gitea's Admin UI
135136

136-
### Only allow/block certain email domains
137-
If using OpenID, you can configure `WHITELISTED_URIS` or `BLACKLISTED_URIS` in your `app.ini`
137+
### Only allow certain email domains
138+
You can configure `EMAIL_DOMAIN_WHITELIST` in your app.ini under `[service]`
139+
140+
### Only allow/block certain OpenID providers
141+
You can configure `WHITELISTED_URIS` or `BLACKLISTED_URIS` under `[openid]` in your `app.ini`
138142
**NOTE:** whitelisted takes precedence, so if it is non-blank then blacklisted is ignored
139143

140144
### Issue only users

0 commit comments

Comments
 (0)