@@ -78,8 +78,9 @@ RUN_USER = ; git
78
78
; ; Set the domain for the server
79
79
; DOMAIN = localhost
80
80
; ;
81
- ; ; Overwrite the automatically generated public URL. Necessary for proxies and docker.
82
- ; ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
81
+ ; ; The AppURL used by Gitea to generate absolute links, defaults to "{PROTOCOL}://{DOMAIN}:{HTTP_PORT}/".
82
+ ; ; Most users should set it to the real website URL of their Gitea instance.
83
+ ; ROOT_URL =
83
84
; ;
84
85
; ; For development purpose only. It makes Gitea handle sub-path ("/sub-path/owner/repo/...") directly when debugging without a reverse proxy.
85
86
; ; DO NOT USE IT IN PRODUCTION!!!
@@ -103,8 +104,8 @@ RUN_USER = ; git
103
104
; REDIRECT_OTHER_PORT = false
104
105
; PORT_TO_REDIRECT = 80
105
106
; ;
106
- ; ; expect PROXY protocol header on connections to https redirector.
107
- ; REDIRECTOR_USE_PROXY_PROTOCOL = %(USE_PROXY_PROTOCOL)s
107
+ ; ; expect PROXY protocol header on connections to https redirector, defaults to USE_PROXY_PROTOCOL
108
+ ; REDIRECTOR_USE_PROXY_PROTOCOL =
108
109
; ; Minimum and maximum supported TLS versions
109
110
; SSL_MIN_VERSION=TLSv1.2
110
111
; SSL_MAX_VERSION=
@@ -128,13 +129,14 @@ RUN_USER = ; git
128
129
; ; most cases you do not need to change the default value. Alter it only if
129
130
; ; your SSH server node is not the same as HTTP node. For different protocol, the default
130
131
; ; values are different. If `PROTOCOL` is `http+unix`, the default value is `http://unix/`.
131
- ; ; If `PROTOCOL` is `fcgi` or `fcgi+unix`, the default value is `%(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/`.
132
- ; ; If listen on `0.0.0.0`, the default value is `%(PROTOCOL)s://localhost:%(HTTP_PORT)s/`, Otherwise the default
133
- ; ; value is `%(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/`.
134
- ; LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
132
+ ; ; If `PROTOCOL` is `fcgi` or `fcgi+unix`, the default value is `{PROTOCOL}://{HTTP_ADDR}:{HTTP_PORT}/`.
133
+ ; ; If listen on `0.0.0.0`, the default value is `{PROTOCOL}://localhost:{HTTP_PORT}/`.
134
+ ; ; Otherwise the default value is `{PROTOCOL}://{HTTP_ADDR}:{HTTP_PORT}/`.
135
+ ; ; Most users don't need (and shouldn't) set this value.
136
+ ; LOCAL_ROOT_URL =
135
137
; ;
136
- ; ; When making local connections pass the PROXY protocol header.
137
- ; LOCAL_USE_PROXY_PROTOCOL = %(USE_PROXY_PROTOCOL)s
138
+ ; ; When making local connections pass the PROXY protocol header, defaults to USE_PROXY_PROTOCOL
139
+ ; LOCAL_USE_PROXY_PROTOCOL =
138
140
; ;
139
141
; ; Disable SSH feature when not available
140
142
; DISABLE_SSH = false
@@ -146,22 +148,26 @@ RUN_USER = ; git
146
148
; SSH_SERVER_USE_PROXY_PROTOCOL = false
147
149
; ;
148
150
; ; Username to use for the builtin SSH server. If blank, then it is the value of RUN_USER.
149
- ; BUILTIN_SSH_SERVER_USER = %(RUN_USER)s
151
+ ; BUILTIN_SSH_SERVER_USER =
150
152
; ;
151
- ; ; Domain name to be exposed in clone URL
152
- ; SSH_DOMAIN = %(DOMAIN)s
153
+ ; ; Domain name to be exposed in clone URL, defaults to DOMAIN or the domain part of ROOT_URL
154
+ ; SSH_DOMAIN =
153
155
; ;
154
- ; ; SSH username displayed in clone URLs.
155
- ; SSH_USER = %(BUILTIN_SSH_SERVER_USER)s
156
+ ; ; SSH username displayed in clone URLs. It defaults to BUILTIN_SSH_SERVER_USER or RUN_USER.
157
+ ; ; If it is set to "(DOER_USERNAME)", it will use current signed-in user's username.
158
+ ; ; This option is only for some advanced users who have configured their SSH reverse-proxy
159
+ ; ; and need to use different usernames for git SSH clone.
160
+ ; ; Most users should just leave it blank.
161
+ ; SSH_USER =
156
162
; ;
157
163
; ; The network interface the builtin SSH server should listen on
158
164
; SSH_LISTEN_HOST =
159
165
; ;
160
166
; ; Port number to be exposed in clone URL
161
167
; SSH_PORT = 22
162
168
; ;
163
- ; ; The port number the builtin SSH server should listen on
164
- ; SSH_LISTEN_PORT = %(SSH_PORT)s
169
+ ; ; The port number the builtin SSH server should listen on, defaults to SSH_PORT
170
+ ; SSH_LISTEN_PORT =
165
171
; ;
166
172
; ; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'.
167
173
; SSH_ROOT_PATH =
@@ -188,7 +194,7 @@ RUN_USER = ; git
188
194
; ;
189
195
; ; For the built-in SSH server, choose the keypair to offer as the host key
190
196
; ; The private key should be at SSH_SERVER_HOST_KEY and the public SSH_SERVER_HOST_KEY.pub
191
- ; ; relative paths are made absolute relative to the %( APP_DATA_PATH)s
197
+ ; ; relative paths are made absolute relative to the APP_DATA_PATH
192
198
; SSH_SERVER_HOST_KEYS=ssh/gitea.rsa, ssh/gogs.rsa
193
199
; ;
194
200
; ; Directory to create temporary files in when testing public keys using ssh-keygen,
@@ -582,7 +588,7 @@ ENABLED = true
582
588
[log]
583
589
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
584
590
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
585
- ; ; Root path for the log files - defaults to %(GITEA_WORK_DIR) /log
591
+ ; ; Root path for the log files - defaults to "{AppWorkPath} /log"
586
592
; ROOT_PATH =
587
593
; ;
588
594
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -682,8 +688,8 @@ LEVEL = Info
682
688
; ; The path of git executable. If empty, Gitea searches through the PATH environment.
683
689
; PATH =
684
690
; ;
685
- ; ; The HOME directory for Git
686
- ; HOME_PATH = %(APP_DATA_PATH)s/home
691
+ ; ; The HOME directory for Git, defaults to "{APP_DATA_PATH}/home"
692
+ ; HOME_PATH =
687
693
; ;
688
694
; ; Disables highlight of added and removed changes
689
695
; DISABLE_DIFF_HIGHLIGHT = false
@@ -946,8 +952,8 @@ LEVEL = Info
946
952
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
947
953
; [repository]
948
954
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
949
- ; ; Root path for storing all repository data. By default, it is set to %( APP_DATA_PATH)s /gitea-repositories.
950
- ; ; A relative path is interpreted as _` AppWorkPath`_/%( ROOT)s
955
+ ; ; Root path for storing all repository data. By default, it is set to "{ APP_DATA_PATH} /gitea-repositories" .
956
+ ; ; A relative path is interpreted as "{ AppWorkPath}/{ ROOT}" (use AppWorkPath as base path).
951
957
; ROOT =
952
958
; ;
953
959
; ; The script type this server supports. Usually this is `bash`, but some users report that only `sh` is available.
@@ -1506,7 +1512,8 @@ LEVEL = Info
1506
1512
; TYPE = persistable-channel
1507
1513
; ;
1508
1514
; ; data-dir for storing persistable queues and level queues, individual queues will default to `queues/common` meaning the queue is shared.
1509
- ; DATADIR = queues/ ; Relative paths will be made absolute against `%(APP_DATA_PATH)s`.
1515
+ ; ; Relative paths will be made absolute against "APP_DATA_PATH"
1516
+ ; DATADIR = queues/
1510
1517
; ;
1511
1518
; ; Default queue length before a channel queue will block
1512
1519
; LENGTH = 100000
0 commit comments