Skip to content

Commit c8b67bb

Browse files
committed
add config on docs
1 parent 2c12b3f commit c8b67bb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
6060
the top of the list. Name must match file name in conf/license or custom/conf/license.
6161
- `DISABLE_HTTP_GIT`: **false**: Disable the ability to interact with repositories over the
6262
HTTP protocol.
63+
- `ACCESS_CONTROL_ALLOW_ORIGIN`: ****: Value for Access-Control-Allow-Origin header, default is not to present.
64+
WARNING: This maybe harmful to you website if you do not give it a right value.
6365
- `USE_COMPAT_SSH_URI`: **false**: Force ssh:// clone url instead of scp-style uri when
6466
default SSH port is used.
6567
- `ACCESS_CONTROL_ALLOW_ORIGIN`: **\<empty\>**: Value for Access-Control-Allow-Origin header,

docs/content/doc/advanced/config-cheat-sheet.zh-cn.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ menu:
3232
- `DEFAULT_PRIVATE`: 默认创建的git工程为私有。 可以是`last`, `private``public`。默认值是 `last`表示用户最后创建的Repo的选择。
3333
- `MAX_CREATION_LIMIT`: 全局最大每个用户创建的git工程数目, `-1` 表示没限制。
3434
- `PULL_REQUEST_QUEUE_LENGTH`: 小心:合并请求测试队列的长度,尽量放大。
35+
- `ACCESS_CONTROL_ALLOW_ORIGIN`: ****: Access-Control-Allow-Origin 头的值,默认为空。
36+
警告:如果您不熟悉这方面的设置请不要修改此值,可能影响网站安全。
3537

3638
## UI (`ui`)
3739

0 commit comments

Comments
 (0)