Try to change default Gitea port

This commit is contained in:
Luke Murphy 2020-03-25 11:41:44 +01:00
parent 86814f4ddc
commit f97a11eb76
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
4 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
FROM gitea/gitea:1.11.3
EXPOSE 3000
EXPOSE 3020
EXPOSE 2222
COPY . ${WORKDIR}

View File

@ -12,7 +12,7 @@
dokku_ports:
app: gitea
mappings:
- "http:80:3000"
- "http:80:{{ http_port }}"
state: present
- name: Setup LE certificates
@ -37,7 +37,7 @@
dokku_ports:
app: gitea
mappings:
- "https:443:3000"
- "https:443:{{ http_port }}"
state: present
- name: Ensure jq package is installed

View File

@ -9,6 +9,7 @@ disable_registration: "true"
domain: "git.autonomic.zone"
enable_openid_signin: "true"
enable_openid_signup: "true"
http_port: "3020"
install_lock: "true"
ssh_domain: "git.autonomic.zone"
ssh_listen_port: "2222"

View File

@ -62,7 +62,7 @@ setup_app_ini() {
crudini --set "$app_ini" server DOMAIN "${DOMAIN}"
crudini --set "$app_ini" server ROOT_URL "https://%(DOMAIN)s/"
crudini --set "$app_ini" server HTTP_ADDR ""
crudini --set "$app_ini" server HTTP_PORT "3000"
crudini --set "$app_ini" server HTTP_PORT "${HTTP_PORT}"
crudini --set "$app_ini" server SSH_DOMAIN "${SSH_DOMAIN}"
crudini --set "$app_ini" server SSH_PORT "${SSH_PORT}"
crudini --set "$app_ini" server SSH_LISTEN_PORT "${SSH_LISTEN_PORT}"