gitea gets require-domain and its domain used in templates.

master
Luka Vandervelden 2019-10-28 13:24:41 +01:00
parent 55dbfa7999
commit df718d2a9e
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
command: gitea -C . -w . -c ./custom/conf/app.ini command: gitea -C . -w . -c ./custom/conf/app.ini
consumes: postgresql consumes: postgresql
requires-domain: true
%directory ${SERVICE_ROOT}/custom/conf %directory ${SERVICE_ROOT}/custom/conf
name: working directory name: working directory

View File

@ -27,10 +27,10 @@ PATH = {{ service.root }}/data/gitea.db
ROOT = {{ service.root }}/repositories ROOT = {{ service.root }}/repositories
[server] [server]
SSH_DOMAIN = localhost SSH_DOMAIN = {{ service.domain }}
DOMAIN = localhost DOMAIN = {{ service.domain }}
HTTP_PORT = {{ port(service.id) }} HTTP_PORT = {{ port(service.id) }}
ROOT_URL = http://localhost:{{ port(service.id) }}/ ROOT_URL = http://{{ service.domain }}:{{ port(service.id) }}/
DISABLE_SSH = false DISABLE_SSH = false
SSH_PORT = 22 SSH_PORT = 22
LFS_START_SERVER = true LFS_START_SERVER = true