IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Browse Source

Use env vars in gitea compose

master
parent
commit
d3b51905b1
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      example/gitea/focker-compose.yml

+ 5
- 3
example/gitea/focker-compose.yml View File

@@ -18,11 +18,13 @@ jails:
gitea-data: /var/db/gitea
ip4.addr: 127.0.8.1
exec.start: |
export IP4_ADDR=127.0.8.1 && \
export DOMAIN_NAME=xyz.com && \
export GITEA_CONF=/usr/local/etc/gitea/conf/app.ini && \
chown git:git /var/db/gitea && \
sed -i -e 's/127.0.0.1/127.0.8.1/g' $GITEA_CONF && \
sed -i -e 's/localhost/xyz.com/g' $GITEA_CONF && \
crudini --set --inplace $GITEA_CONF server ROOT_URL https://xyz.com && \
sed -i -e "s/127.0.0.1/${IP4_ADDR}/g" $GITEA_CONF && \
sed -i -e "s/localhost/${DOMAIN_NAME}/g" $GITEA_CONF && \
crudini --set --inplace $GITEA_CONF server ROOT_URL https://${DOMAIN_NAME} && \
crudini --set --inplace $GITEA_CONF server DISABLE_SSH true && \
export SECRET_CONF=/var/db/gitea/focker-secrets.ini && \
if [ ! -f $SECRET_CONF ]; then


Loading…
Cancel
Save