Added database values to change; more work on the config file
This commit is contained in:
parent
9e9656b229
commit
7ee5e455df
@ -16,6 +16,9 @@ gitea:
|
|||||||
app_name: 'Gitea: Git with a cup of tea'
|
app_name: 'Gitea: Git with a cup of tea'
|
||||||
run_user: 'git'
|
run_user: 'git'
|
||||||
run_mode: 'prod'
|
run_mode: 'prod'
|
||||||
|
app_data_path: '/var/lib/gitea'
|
||||||
|
security:
|
||||||
|
secret_key: 'ChangeMeBeforeRunning'
|
||||||
server:
|
server:
|
||||||
domain: 'localhost'
|
domain: 'localhost'
|
||||||
http_address: '127.0.0.1'
|
http_address: '127.0.0.1'
|
||||||
@ -25,4 +28,13 @@ gitea:
|
|||||||
ssh_domain: "%(DOMAIN)s"
|
ssh_domain: "%(DOMAIN)s"
|
||||||
ssh_port: 22
|
ssh_port: 22
|
||||||
offline_mode: False
|
offline_mode: False
|
||||||
app_data_path: '/var/db/gitea/data'
|
database:
|
||||||
|
driver: 'sqlite3'
|
||||||
|
host: '127.0.0.1:3306'
|
||||||
|
name: 'gitea'
|
||||||
|
user: 'gitea'
|
||||||
|
password: ''
|
||||||
|
path: '/var/lib/gitea/data/gitea.db'
|
||||||
|
ssl: 'disable'
|
||||||
|
charset: 'utf8'
|
||||||
|
log_sql: 'false'
|
||||||
|
@ -27,16 +27,18 @@ RUN_USER = {{ gitea.run_user }}
|
|||||||
RUN_MODE = {{ gitea.run_mode }}
|
RUN_MODE = {{ gitea.run_mode }}
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
DB_TYPE = sqlite3
|
DB_TYPE = {{ gitea.database.driver }}
|
||||||
HOST = 127.0.0.1:3306
|
HOST = {{ gitea.database.host }}
|
||||||
NAME = gitea
|
NAME = {{ gitea.database.name }}
|
||||||
PASSWD =
|
USER = {{ gitea.database.user }}
|
||||||
PATH = /var/db/gitea/gitea.db
|
PASSWD = {{ gitea.database.password }}
|
||||||
SSL_MODE = disable
|
PATH = {{ gitea.database.path }}
|
||||||
USER = root
|
SSL_MODE = {{ gitea.database.ssl }}
|
||||||
|
CHARSET = {{ gitea.database.charset }}
|
||||||
|
LOG_SQL = {{ gitea.database.log_sql }}
|
||||||
|
|
||||||
[indexer]
|
[indexer]
|
||||||
ISSUE_INDEXER_PATH = /var/db/gitea/indexers/issues.bleve
|
ISSUE_INDEXER_PATH = {{ gitea.app_data_path }}/indexers/issues.bleve
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
ROOT_PATH = /var/log/gitea
|
ROOT_PATH = /var/log/gitea
|
||||||
@ -50,7 +52,7 @@ ENABLED = false
|
|||||||
JWT_SECRET = D56bmu6xCtEKs9vKKgMKnsa4X9FDwo64HVyaS4fQ4mY
|
JWT_SECRET = D56bmu6xCtEKs9vKKgMKnsa4X9FDwo64HVyaS4fQ4mY
|
||||||
|
|
||||||
[picture]
|
[picture]
|
||||||
AVATAR_UPLOAD_PATH = /var/db/gitea/data/avatars
|
AVATAR_UPLOAD_PATH = {{ gitea.app_data_path }}/data/avatars
|
||||||
DISABLE_GRAVATAR = false
|
DISABLE_GRAVATAR = false
|
||||||
ENABLE_FEDERATED_AVATAR = false
|
ENABLE_FEDERATED_AVATAR = false
|
||||||
|
|
||||||
@ -61,16 +63,16 @@ ROOT = /var/db/gitea/gitea-repositories
|
|||||||
SCRIPT_TYPE = sh
|
SCRIPT_TYPE = sh
|
||||||
|
|
||||||
[repository.upload]
|
[repository.upload]
|
||||||
TEMP_PATH = /var/db/gitea/data/tmp/uploads
|
TEMP_PATH = {{ gitea.app_data_path }}/data/tmp/uploads
|
||||||
|
|
||||||
[security]
|
[security]
|
||||||
INSTALL_LOCK = true
|
INSTALL_LOCK = true
|
||||||
INTERNAL_TOKEN = 1FFhAklka01JhgJTRUrFujWYiv4ijqcTIfXJ9o4n1fWxz+XVQdXhrqDTlsnD7fvz7gugdhgkx0FY2Lx6IBdPQw==
|
INTERNAL_TOKEN = 1FFhAklka01JhgJTRUrFujWYiv4ijqcTIfXJ9o4n1fWxz+XVQdXhrqDTlsnD7fvz7gugdhgkx0FY2Lx6IBdPQw==
|
||||||
SECRET_KEY = ChangeMeBeforeRunning
|
SECRET_KEY = {{ gitea.security.secret_key }}
|
||||||
|
|
||||||
[session]
|
[session]
|
||||||
PROVIDER = file
|
PROVIDER = file
|
||||||
PROVIDER_CONFIG = /var/db/gitea/data/sessions
|
PROVIDER_CONFIG = {{ gitea.app_data_path }}/data/sessions
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
DOMAIN = {{ gitea.server.domain }}
|
DOMAIN = {{ gitea.server.domain }}
|
||||||
@ -81,7 +83,7 @@ DISABLE_SSH = {{ gitea.server.disable_ssh }}
|
|||||||
SSH_DOMAIN = {{ gitea.server.ssh_domain }}
|
SSH_DOMAIN = {{ gitea.server.ssh_domain }}
|
||||||
SSH_PORT = {{ gitea.server.ssh_port }}
|
SSH_PORT = {{ gitea.server.ssh_port }}
|
||||||
OFFLINE_MODE = {{ gitea.server.offline_mode }}
|
OFFLINE_MODE = {{ gitea.server.offline_mode }}
|
||||||
APP_DATA_PATH = {{ gitea.server.app_data_path }}
|
APP_DATA_PATH = {{ gitea.app_data_path }}/data
|
||||||
|
|
||||||
[service]
|
[service]
|
||||||
REGISTER_EMAIL_CONFIRM = false
|
REGISTER_EMAIL_CONFIRM = false
|
||||||
|
@ -3,3 +3,7 @@
|
|||||||
|
|
||||||
FreeBSD:
|
FreeBSD:
|
||||||
config_path: '/usr/local/etc/gitea/conf/app.ini'
|
config_path: '/usr/local/etc/gitea/conf/app.ini'
|
||||||
|
config:
|
||||||
|
app_data_path: '/var/db/gitea/data'
|
||||||
|
database:
|
||||||
|
path: '/var/db/gitea/data/gitea.db'
|
||||||
|
Loading…
Reference in New Issue
Block a user