diff --git a/services/gitea.spec b/services/gitea.spec index 858882d..7a5cdef 100644 --- a/services/gitea.spec +++ b/services/gitea.spec @@ -1,5 +1,6 @@ command: gitea -C . -w . -c ./custom/conf/app.ini consumes: postgresql +requires-domain: true %directory ${SERVICE_ROOT}/custom/conf name: working directory diff --git a/templates/gitea.cfg.j2 b/templates/gitea.cfg.j2 index 59b6b26..abd3273 100644 --- a/templates/gitea.cfg.j2 +++ b/templates/gitea.cfg.j2 @@ -27,10 +27,10 @@ PATH = {{ service.root }}/data/gitea.db ROOT = {{ service.root }}/repositories [server] -SSH_DOMAIN = localhost -DOMAIN = localhost +SSH_DOMAIN = {{ service.domain }} +DOMAIN = {{ service.domain }} HTTP_PORT = {{ port(service.id) }} -ROOT_URL = http://localhost:{{ port(service.id) }}/ +ROOT_URL = http://{{ service.domain }}:{{ port(service.id) }}/ DISABLE_SSH = false SSH_PORT = 22 LFS_START_SERVER = true