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
부모
커밋
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


불러오는 중...
취소
저장