Added some configuration values to manage

This commit is contained in:
Gregory Ballantine 2023-03-21 14:19:24 -04:00
parent d106a8279e
commit 9e9656b229
2 changed files with 28 additions and 13 deletions

View File

@ -8,6 +8,21 @@ gitea:
config_owner: 'gitea' config_owner: 'gitea'
config_group: 'gitea' config_group: 'gitea'
config_mode: 0644 config_mode: 0644
config: {}
service_name: 'gitea' service_name: 'gitea'
service_enabled: True service_enabled: True
# App configuration defaults
config:
app_name: 'Gitea: Git with a cup of tea'
run_user: 'git'
run_mode: 'prod'
server:
domain: 'localhost'
http_address: '127.0.0.1'
http_port: '3000'
app_url: 'http://localhost:3000/'
disable_ssh: False
ssh_domain: "%(DOMAIN)s"
ssh_port: 22
offline_mode: False
app_data_path: '/var/db/gitea/data'

View File

@ -22,9 +22,9 @@
# If you'd rather use the web-based installer, remove this conf/app.ini file # If you'd rather use the web-based installer, remove this conf/app.ini file
# and make /usr/local/etc/gitea/conf writeable to the git user. # and make /usr/local/etc/gitea/conf writeable to the git user.
APP_NAME = Gitea: Git with a cup of tea APP_NAME = {{ gitea.app_name }}
RUN_USER = git RUN_USER = {{ gitea.run_user }}
RUN_MODE = prod RUN_MODE = {{ gitea.run_mode }}
[database] [database]
DB_TYPE = sqlite3 DB_TYPE = sqlite3
@ -73,15 +73,15 @@ PROVIDER = file
PROVIDER_CONFIG = /var/db/gitea/data/sessions PROVIDER_CONFIG = /var/db/gitea/data/sessions
[server] [server]
DOMAIN = localhost DOMAIN = {{ gitea.server.domain }}
HTTP_ADDR = 127.0.0.1 HTTP_ADDR = {{ gitea.server.http_address }}
HTTP_PORT = 3000 HTTP_PORT = {{ gitea.server.http_port }}
ROOT_URL = http://localhost:3000/ ROOT_URL = {{ gitea.server.app_url }}
DISABLE_SSH = false DISABLE_SSH = {{ gitea.server.disable_ssh }}
SSH_DOMAIN = %(DOMAIN)s SSH_DOMAIN = {{ gitea.server.ssh_domain }}
SSH_PORT = 22 SSH_PORT = {{ gitea.server.ssh_port }}
OFFLINE_MODE = false OFFLINE_MODE = {{ gitea.server.offline_mode }}
APP_DATA_PATH = /var/db/gitea/data APP_DATA_PATH = {{ gitea.server.app_data_path }}
[service] [service]
REGISTER_EMAIL_CONFIRM = false REGISTER_EMAIL_CONFIRM = false