@@ -210,7 +210,7 @@ are listed in the descriptions of the relevant settings.
| `diff_max_patch_bytes` | integer | no | Maximum diff patch size (Bytes). |
| `disabled_oauth_sign_in_sources` | array of strings | no | Disabled OAuth sign-in sources. |
| `dns_rebinding_protection_enabled` | boolean | no | Enforce DNS rebinding attack protection. |
| `domain_blacklist` | array of strings | required by: `domain_blacklist_enabled` | Users with e-mail addresses that match these domain(s) will NOT be able to sign-up. Wildcards allowed. Use separate lines for multiple entries. Ex: `domain.com`, `*.domain.com`. |
| `domain_blacklist` | array of strings | no | Users with e-mail addresses that match these domain(s) will NOT be able to sign-up. Wildcards allowed. Use separate lines for multiple entries. Ex: `domain.com`, `*.domain.com`. |
| `domain_blacklist_enabled` | boolean | no | (**If enabled, requires:**`domain_blacklist`) Allows blocking sign-ups from emails from specific domains. |
| `domain_whitelist` | array of strings | no | Force people to use only corporate emails for sign-up. Default is `null`, meaning there is no restriction. |
| `dsa_key_restriction` | integer | no | The minimum allowed bit length of an uploaded DSA key. Default is `0` (no restriction). `-1` disables DSA keys. |
optional:default_snippet_visibility,type: String,values: Gitlab::VisibilityLevel.string_values,desc: 'The default snippet visibility'
optional:disabled_oauth_sign_in_sources,type: Array[String],desc: 'Disable certain OAuth sign-in sources'
optional:domain_blacklist_enabled,type: Boolean,desc: 'Enable domain blacklist for sign ups'
givendomain_blacklist_enabled: ->(val){val}do
requires:domain_blacklist,type: String,desc: 'Users with e-mail addresses that match these domain(s) will NOT be able to sign-up. Wildcards allowed. Use separate lines for multiple entries. Ex: domain.com, *.domain.com'
end
optional:domain_whitelist,type: String,desc: 'ONLY users with e-mail addresses that match these domain(s) will be able to sign-up. Wildcards allowed. Use separate lines for multiple entries. Ex: domain.com, *.domain.com'
optional:domain_blacklist,type: Array[String],coerce_with: Validations::Types::CommaSeparatedToArray.coerce,desc: 'Users with e-mail addresses that match these domain(s) will NOT be able to sign-up. Wildcards allowed. Use separate lines for multiple entries. Ex: domain.com, *.domain.com'
optional:domain_whitelist,type: Array[String],coerce_with: Validations::Types::CommaSeparatedToArray.coerce,desc: 'ONLY users with e-mail addresses that match these domain(s) will be able to sign-up. Wildcards allowed. Use separate lines for multiple entries. Ex: domain.com, *.domain.com'
optional:email_author_in_body,type: Boolean,desc: 'Some email servers do not support overriding the email sender name. Enable this option to include the name of the author of the issue, merge request or comment in the email body instead.'
optional:enabled_git_access_protocol,type: String,values: %w[ssh http nil],desc: 'Allow only the selected protocols to be used for Git access.'
optional:gitaly_timeout_default,type: Integer,desc: 'Default Gitaly timeout, in seconds. Set to 0 to disable timeouts.'
...
...
@@ -74,7 +72,7 @@ module API
requires:housekeeping_incremental_repack_period,type: Integer,desc: "Number of Git pushes after which an incremental 'git repack' is run."
end
optional:html_emails_enabled,type: Boolean,desc: 'By default GitLab sends emails in HTML and plain text formats so mail clients can choose what format to use. Disable this option if you only want to send emails in plain text format.'