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!
Просмотр исходного кода

Use env vars in gitea compose

master
Stanislaw Adaszewski 4 лет назад
Родитель
Сommit
d3b51905b1
1 измененных файлов: 5 добавлений и 3 удалений
  1. +5
    -3
      example/gitea/focker-compose.yml

+ 5
- 3
example/gitea/focker-compose.yml Просмотреть файл

@@ -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


Загрузка…
Отмена
Сохранить