|
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
# PLEASE MAKE CHANGES ON CORRESPONDING CUSTOM CONFIG FILE |
|
|
|
|
|
|
|
|
|
; 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 |
|
|
|
|
RUN_USER = git |
|
|
|
|
; Either "dev", "prod" or "test", default is "dev" |
|
|
|
@ -38,7 +38,7 @@ PREVIEWABLE_FILE_MODES = markdown |
|
|
|
|
[repository.upload] |
|
|
|
|
; Whether repository file uploads are enabled. Defaults to `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 |
|
|
|
|
; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type |
|
|
|
|
ALLOWED_TYPES = |
|
|
|
@ -93,7 +93,7 @@ HTTP_ADDR = 0.0.0.0 |
|
|
|
|
HTTP_PORT = 3000 |
|
|
|
|
; Permission for unix socket |
|
|
|
|
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. |
|
|
|
|
; 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/ |
|
|
|
@ -120,7 +120,7 @@ MINIMUM_KEY_SIZE_CHECK = false |
|
|
|
|
OFFLINE_MODE = false |
|
|
|
|
DISABLE_ROUTER_LOG = false |
|
|
|
|
; 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 |
|
|
|
|
; not forget to export the private key): |
|
|
|
@ -129,7 +129,7 @@ DISABLE_ROUTER_LOG = false |
|
|
|
|
CERT_FILE = custom/https/cert.pem |
|
|
|
|
KEY_FILE = custom/https/key.pem |
|
|
|
|
; 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 = |
|
|
|
|
; Default path for App data |
|
|
|
|
APP_DATA_PATH = data |
|
|
|
@ -149,13 +149,13 @@ DSA = 1024 |
|
|
|
|
; Either "mysql", "postgres" or "sqlite3", it's your choice |
|
|
|
|
DB_TYPE = mysql |
|
|
|
|
HOST = 127.0.0.1:3306 |
|
|
|
|
NAME = gogs |
|
|
|
|
NAME = gitea |
|
|
|
|
USER = root |
|
|
|
|
PASSWD = |
|
|
|
|
; For "postgres" only, either "disable", "require" or "verify-full" |
|
|
|
|
SSL_MODE = disable |
|
|
|
|
; For "sqlite3" and "tidb", use absolute path when you start as service |
|
|
|
|
PATH = data/gogs.db |
|
|
|
|
PATH = data/gitea.db |
|
|
|
|
|
|
|
|
|
[admin] |
|
|
|
|
|
|
|
|
@ -165,8 +165,8 @@ INSTALL_LOCK = false |
|
|
|
|
SECRET_KEY = !#@FDEWREWR&*( |
|
|
|
|
; Auto-login remember days |
|
|
|
|
LOGIN_REMEMBER_DAYS = 7 |
|
|
|
|
COOKIE_USERNAME = gogs_awesome |
|
|
|
|
COOKIE_REMEMBER_NAME = gogs_incredible |
|
|
|
|
COOKIE_USERNAME = gitea_awesome |
|
|
|
|
COOKIE_REMEMBER_NAME = gitea_incredible |
|
|
|
|
; Reverse proxy authentication header name of user name |
|
|
|
|
REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER |
|
|
|
|
|
|
|
|
@ -344,13 +344,13 @@ RECEIVERS = |
|
|
|
|
LEVEL = |
|
|
|
|
; Either "mysql" or "postgres" |
|
|
|
|
DRIVER = |
|
|
|
|
; Based on xorm, e.g.: root:root@localhost/gogs?charset=utf8 |
|
|
|
|
; Based on xorm, e.g.: root:root@localhost/gitea?charset=utf8 |
|
|
|
|
CONN = |
|
|
|
|
|
|
|
|
|
[cron] |
|
|
|
|
; Enable running cron tasks periodically. |
|
|
|
|
ENABLED = true |
|
|
|
|
; Run cron tasks when Gogs starts. |
|
|
|
|
; Run cron tasks when Gitea starts. |
|
|
|
|
RUN_AT_START = false |
|
|
|
|
|
|
|
|
|
; Update mirrors |
|
|
|
@ -430,7 +430,7 @@ cs-CZ = cs-CZ |
|
|
|
|
|
|
|
|
|
[other] |
|
|
|
|
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 time of template execution in the footer |
|
|
|
|
SHOW_FOOTER_TEMPLATE_LOAD_TIME = true |
|
|
|
|