|
|
@ -2,7 +2,7 @@ |
|
|
|
# PLEASE MAKE CHANGES ON CORRESPONDING CUSTOM CONFIG FILE |
|
|
|
# PLEASE MAKE CHANGES ON CORRESPONDING CUSTOM CONFIG FILE |
|
|
|
|
|
|
|
|
|
|
|
; App name that shows on every page title |
|
|
|
; App name that shows on every page title |
|
|
|
APP_NAME = Gogs: Go Git Service |
|
|
|
APP_NAME = Gitea: Git with a cup of tea |
|
|
|
; Change it if you run locally |
|
|
|
; Change it if you run locally |
|
|
|
RUN_USER = git |
|
|
|
RUN_USER = git |
|
|
|
; Either "dev", "prod" or "test", default is "dev" |
|
|
|
; Either "dev", "prod" or "test", default is "dev" |
|
|
@ -38,7 +38,7 @@ PREVIEWABLE_FILE_MODES = markdown |
|
|
|
[repository.upload] |
|
|
|
[repository.upload] |
|
|
|
; Whether repository file uploads are enabled. Defaults to `true` |
|
|
|
; Whether repository file uploads are enabled. Defaults to `true` |
|
|
|
ENABLED = true |
|
|
|
ENABLED = true |
|
|
|
; Path for uploads. Defaults to `data/tmp/uploads` (tmp gets deleted on gogs restart) |
|
|
|
; Path for uploads. Defaults to `data/tmp/uploads` (tmp gets deleted on gitea restart) |
|
|
|
TEMP_PATH = data/tmp/uploads |
|
|
|
TEMP_PATH = data/tmp/uploads |
|
|
|
; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type |
|
|
|
; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type |
|
|
|
ALLOWED_TYPES = |
|
|
|
ALLOWED_TYPES = |
|
|
@ -93,7 +93,7 @@ HTTP_ADDR = 0.0.0.0 |
|
|
|
HTTP_PORT = 3000 |
|
|
|
HTTP_PORT = 3000 |
|
|
|
; Permission for unix socket |
|
|
|
; Permission for unix socket |
|
|
|
UNIX_SOCKET_PERMISSION = 666 |
|
|
|
UNIX_SOCKET_PERMISSION = 666 |
|
|
|
; Local (DMZ) URL for Gogs workers (such as SSH update) accessing web service. |
|
|
|
; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service. |
|
|
|
; In most cases you do not need to change the default value. |
|
|
|
; In most cases you do not need to change the default value. |
|
|
|
; Alter it only if your SSH server node is not the same as HTTP node. |
|
|
|
; Alter it only if your SSH server node is not the same as HTTP node. |
|
|
|
LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/ |
|
|
|
LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/ |
|
|
@ -120,7 +120,7 @@ MINIMUM_KEY_SIZE_CHECK = false |
|
|
|
OFFLINE_MODE = false |
|
|
|
OFFLINE_MODE = false |
|
|
|
DISABLE_ROUTER_LOG = false |
|
|
|
DISABLE_ROUTER_LOG = false |
|
|
|
; Generate steps: |
|
|
|
; Generate steps: |
|
|
|
; $ ./gogs cert -ca=true -duration=8760h0m0s -host=myhost.example.com |
|
|
|
; $ ./main cert -ca=true -duration=8760h0m0s -host=myhost.example.com |
|
|
|
; |
|
|
|
; |
|
|
|
; Or from a .pfx file exported from the Windows certificate store (do |
|
|
|
; Or from a .pfx file exported from the Windows certificate store (do |
|
|
|
; not forget to export the private key): |
|
|
|
; not forget to export the private key): |
|
|
@ -129,7 +129,7 @@ DISABLE_ROUTER_LOG = false |
|
|
|
CERT_FILE = custom/https/cert.pem |
|
|
|
CERT_FILE = custom/https/cert.pem |
|
|
|
KEY_FILE = custom/https/key.pem |
|
|
|
KEY_FILE = custom/https/key.pem |
|
|
|
; Upper level of template and static file path |
|
|
|
; Upper level of template and static file path |
|
|
|
; default is the path where Gogs is executed |
|
|
|
; default is the path where Gitea is executed |
|
|
|
STATIC_ROOT_PATH = |
|
|
|
STATIC_ROOT_PATH = |
|
|
|
; Default path for App data |
|
|
|
; Default path for App data |
|
|
|
APP_DATA_PATH = data |
|
|
|
APP_DATA_PATH = data |
|
|
@ -149,13 +149,13 @@ DSA = 1024 |
|
|
|
; Either "mysql", "postgres" or "sqlite3", it's your choice |
|
|
|
; Either "mysql", "postgres" or "sqlite3", it's your choice |
|
|
|
DB_TYPE = mysql |
|
|
|
DB_TYPE = mysql |
|
|
|
HOST = 127.0.0.1:3306 |
|
|
|
HOST = 127.0.0.1:3306 |
|
|
|
NAME = gogs |
|
|
|
NAME = gitea |
|
|
|
USER = root |
|
|
|
USER = root |
|
|
|
PASSWD = |
|
|
|
PASSWD = |
|
|
|
; For "postgres" only, either "disable", "require" or "verify-full" |
|
|
|
; For "postgres" only, either "disable", "require" or "verify-full" |
|
|
|
SSL_MODE = disable |
|
|
|
SSL_MODE = disable |
|
|
|
; For "sqlite3" and "tidb", use absolute path when you start as service |
|
|
|
; For "sqlite3" and "tidb", use absolute path when you start as service |
|
|
|
PATH = data/gogs.db |
|
|
|
PATH = data/gitea.db |
|
|
|
|
|
|
|
|
|
|
|
[admin] |
|
|
|
[admin] |
|
|
|
|
|
|
|
|
|
|
@ -165,8 +165,8 @@ INSTALL_LOCK = false |
|
|
|
SECRET_KEY = !#@FDEWREWR&*( |
|
|
|
SECRET_KEY = !#@FDEWREWR&*( |
|
|
|
; Auto-login remember days |
|
|
|
; Auto-login remember days |
|
|
|
LOGIN_REMEMBER_DAYS = 7 |
|
|
|
LOGIN_REMEMBER_DAYS = 7 |
|
|
|
COOKIE_USERNAME = gogs_awesome |
|
|
|
COOKIE_USERNAME = gitea_awesome |
|
|
|
COOKIE_REMEMBER_NAME = gogs_incredible |
|
|
|
COOKIE_REMEMBER_NAME = gitea_incredible |
|
|
|
; Reverse proxy authentication header name of user name |
|
|
|
; Reverse proxy authentication header name of user name |
|
|
|
REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER |
|
|
|
REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER |
|
|
|
|
|
|
|
|
|
|
@ -344,13 +344,13 @@ RECEIVERS = |
|
|
|
LEVEL = |
|
|
|
LEVEL = |
|
|
|
; Either "mysql" or "postgres" |
|
|
|
; Either "mysql" or "postgres" |
|
|
|
DRIVER = |
|
|
|
DRIVER = |
|
|
|
; Based on xorm, e.g.: root:root@localhost/gogs?charset=utf8 |
|
|
|
; Based on xorm, e.g.: root:root@localhost/gitea?charset=utf8 |
|
|
|
CONN = |
|
|
|
CONN = |
|
|
|
|
|
|
|
|
|
|
|
[cron] |
|
|
|
[cron] |
|
|
|
; Enable running cron tasks periodically. |
|
|
|
; Enable running cron tasks periodically. |
|
|
|
ENABLED = true |
|
|
|
ENABLED = true |
|
|
|
; Run cron tasks when Gogs starts. |
|
|
|
; Run cron tasks when Gitea starts. |
|
|
|
RUN_AT_START = false |
|
|
|
RUN_AT_START = false |
|
|
|
|
|
|
|
|
|
|
|
; Update mirrors |
|
|
|
; Update mirrors |
|
|
@ -430,7 +430,7 @@ cs-CZ = cs-CZ |
|
|
|
|
|
|
|
|
|
|
|
[other] |
|
|
|
[other] |
|
|
|
SHOW_FOOTER_BRANDING = false |
|
|
|
SHOW_FOOTER_BRANDING = false |
|
|
|
; Show version information about Gogs and Go in the footer |
|
|
|
; Show version information about Gitea and Go in the footer |
|
|
|
SHOW_FOOTER_VERSION = true |
|
|
|
SHOW_FOOTER_VERSION = true |
|
|
|
; Show time of template execution in the footer |
|
|
|
; Show time of template execution in the footer |
|
|
|
SHOW_FOOTER_TEMPLATE_LOAD_TIME = true |
|
|
|
SHOW_FOOTER_TEMPLATE_LOAD_TIME = true |
|
|
|