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:
parent
07db480c04
commit
00102c44e2
1 changed files with 9 additions and 1 deletions
|
@ -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_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
|
||||
PROXY_ENABLED = true
|
||||
|
@ -1296,6 +1296,14 @@ PROXY_URL = socks5://127.0.0.1:1080
|
|||
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`)
|
||||
|
||||
- `ENABLED`: **true**: Enable/Disable actions
|
||||
|
|
Loading…
Reference in a new issue