0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-11-21 17:36:59 -05:00

admin: cheat sheet, clarify proxy configuration

This commit is contained in:
0ko 2024-07-10 12:16:58 +05:00 committed by Earl Warren
parent 07db480c04
commit 00102c44e2

View file

@ -1288,7 +1288,7 @@ The settings for all these sections are [explained in detail in the storage docu
- `PROXY_URL`: **\<empty\>**: Proxy server URL, support http://, https//, socks5://, blank will follow environment http_proxy/https_proxy - `PROXY_URL`: **\<empty\>**: Proxy server URL, support http://, https//, socks5://, blank will follow environment http_proxy/https_proxy
- `PROXY_HOSTS`: **\<empty\>**: Comma separated list of host names requiring proxy. Glob patterns (\*) are accepted; use \*\* to match all hosts. - `PROXY_HOSTS`: **\<empty\>**: Comma separated list of host names requiring proxy. Glob patterns (\*) are accepted; use \*\* to match all hosts.
i.e. For example, the following configuration can be used to proxy connections GitHub subdomains, such as api.github.com:
```ini ```ini
PROXY_ENABLED = true PROXY_ENABLED = true
@ -1296,6 +1296,14 @@ PROXY_URL = socks5://127.0.0.1:1080
PROXY_HOSTS = *.github.com PROXY_HOSTS = *.github.com
``` ```
If you intend to proxy all connections to github.com, specify it's second-level domain too:
```
PROXY_HOSTS = github.com,*.github.com
```
Note that you may need to set `[migrations].ALLOW_LOCALNETWORKS` option to `true` in order to allow performing migrations via proxy.
## Actions (`actions`) ## Actions (`actions`)
- `ENABLED`: **true**: Enable/Disable actions - `ENABLED`: **true**: Enable/Disable actions