You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: custom/conf/app.example.ini
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -378,6 +378,10 @@ INTERNAL_TOKEN=
378
378
;;
379
379
;; Validate against https://haveibeenpwned.com/Passwords to see if a password has been exposed
380
380
;PASSWORD_CHECK_PWN = false
381
+
;;
382
+
;; Cache successful token hashes. API tokens are stored in the DB as pbkdf2 hashes however, this means that there is a potentially significant hashing load when there are multiple API operations.
383
+
;; This cache will store the successfully hashed tokens in a LRU cache as a balance between performance and security.
Copy file name to clipboardExpand all lines: docs/content/doc/advanced/config-cheat-sheet.en-us.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -441,6 +441,7 @@ relation to port exhaustion.
441
441
- spec - use one or more special characters as ``!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~``
442
442
- off - do not check password complexity
443
443
-`PASSWORD_CHECK_PWN`: **false**: Check [HaveIBeenPwned](https://haveibeenpwned.com/Passwords) to see if a password has been exposed.
444
+
-`SUCCESSFUL_TOKENS_CACHE_SIZE`: **20**: Cache successful token hashes. API tokens are stored in the DB as pbkdf2 hashes however, this means that there is a potentially significant hashing load when there are multiple API operations. This cache will store the successfully hashed tokens in a LRU cache as a balance between performance and security.
444
445
445
446
## OpenID (`openid`)
446
447
@@ -548,8 +549,8 @@ Define allowed algorithms and their minimum key length (use -1 to disable a type
548
549
-`DELIVER_TIMEOUT`: **5**: Delivery timeout (sec) for shooting webhooks.
-`PAGING_NUM`: **10**: Number of webhook history events that are shown in one page.
551
-
-`PROXY_URL`: ****: Proxy server URL, support http://, https//, socks://, blank will follow environment http_proxy/https_proxy
552
-
-`PROXY_HOSTS`: ****: Comma separated list of host names requiring proxy. Glob patterns (*) are accepted; use ** to match all hosts.
552
+
-`PROXY_URL`: **\<empty\>**: Proxy server URL, support http://, https//, socks://, blank will follow environment http_proxy/https_proxy. If not given, will use global proxy setting.
553
+
-`PROXY_HOSTS`: **\<empty\>`**: Comma separated list of host names requiring proxy. Glob patterns (*) are accepted; use ** to match all hosts. If not given, will use global proxy setting.
553
554
554
555
## Mailer (`mailer`)
555
556
@@ -949,6 +950,7 @@ Task queue configuration has been moved to `queue.task`. However, the below conf
949
950
-`ALLOWED_DOMAINS`: **\<empty\>**: Domains allowlist for migrating repositories, default is blank. It means everything will be allowed. Multiple domains could be separated by commas.
950
951
-`BLOCKED_DOMAINS`: **\<empty\>**: Domains blocklist for migrating repositories, default is blank. Multiple domains could be separated by commas. When `ALLOWED_DOMAINS` is not blank, this option will be ignored.
951
952
-`ALLOW_LOCALNETWORKS`: **false**: Allow private addresses defined by RFC 1918, RFC 1122, RFC 4632 and RFC 4291
@@ -1022,6 +1024,19 @@ is `data/repo-archive` and the default of `MINIO_BASE_PATH` is `repo-archive/`.
1022
1024
-`MINIO_BASE_PATH`: **repo-archive/**: Minio base path on the bucket only available when `STORAGE_TYPE` is `minio`
1023
1025
-`MINIO_USE_SSL`: **false**: Minio enabled ssl only available when `STORAGE_TYPE` is `minio`
1024
1026
1027
+
## Proxy (`proxy`)
1028
+
1029
+
-`PROXY_ENABLED`: **false**: Enable the proxy if true, all requests to external via HTTP will be affected, if false, no proxy will be used even environment http_proxy/https_proxy
1030
+
-`PROXY_URL`: **\<empty\>**: Proxy server URL, support http://, https//, socks://, blank will follow environment http_proxy/https_proxy
1031
+
-`PROXY_HOSTS`: **\<empty\>**: Comma separated list of host names requiring proxy. Glob patterns (*) are accepted; use ** to match all hosts.
1032
+
1033
+
i.e.
1034
+
```ini
1035
+
PROXY_ENABLED = true
1036
+
PROXY_URL = socks://127.0.0.1:1080
1037
+
PROXY_HOSTS = *.github.com
1038
+
```
1039
+
1025
1040
## Other (`other`)
1026
1041
1027
1042
-`SHOW_FOOTER_BRANDING`: **false**: Show Gitea branding in the footer.
0 commit comments