Skip to content

Commit b3a3024

Browse files
travierlunny
authored andcommitted
doc: update LOCAL_ROOT_URL description for PROTOCOL = 'unix' case (#3760)
Update the sample configuration and config cheat sheet description for the LOCAL_ROOT_URL configuration variable to mention the special case required if PROTOCOL is set to 'unix'. Fixes #3741. Signed-off-by: Timothée Ravier <[email protected]>
1 parent d97bb95 commit b3a3024

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

custom/conf/app.ini.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ UNIX_SOCKET_PERMISSION = 666
124124
; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service.
125125
; In most cases you do not need to change the default value.
126126
; Alter it only if your SSH server node is not the same as HTTP node.
127+
; Do not set this variable if PROTOCOL is set to 'unix'.
127128
LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
128129
; Disable SSH feature when not available
129130
DISABLE_SSH = false

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
9595
- If `PROTOCOL` is set to `fcgi`, Gitea will listen for FastCGI requests on TCP socket
9696
defined by `HTTP_ADDR` and `HTTP_PORT` configuration settings.
9797
- `UNIX_SOCKET_PERMISSION`: **666**: Permissions for the Unix socket.
98+
- `LOCAL_ROOT_URL`: **%(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/**: Local
99+
(DMZ) URL for Gitea workers (such as SSH update) accessing web service. In
100+
most cases you do not need to change the default value. Alter it only if
101+
your SSH server node is not the same as HTTP node. Do not set this variable
102+
if `PROTOCOL` is set to `unix`.
98103
- `DISABLE_SSH`: **false**: Disable SSH feature when it's not available.
99104
- `START_SSH_SERVER`: **false**: When enabled, use the built-in SSH server.
100105
- `SSH_DOMAIN`: **%(DOMAIN)s**: Domain name of this server, used for displayed clone URL.

0 commit comments

Comments
 (0)