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

Adjustments in gitea recipe

master
parent
commit
fb5d9d8034
2 changed files with 7 additions and 1 deletions
  1. +1
    -0
      example/gitea/Fockerfile
  2. +6
    -1
      example/gitea/focker-compose.yml

+ 1
- 0
example/gitea/Fockerfile View File

@@ -42,3 +42,4 @@ steps:
- sysrc sshd_enable=NO
- sysrc gitea_enable=YES
- sysrc syslogd_flags="-ss"
- sed -i -e 's/DISABLE_REGISTRATION[ \t]*=[ \t]*false/DISABLE_REGISTRATION = true/g' /usr/local/etc/gitea/conf/app.ini

+ 6
- 1
example/gitea/focker-compose.yml View File

@@ -19,7 +19,12 @@ jails:
ip4.addr: 127.0.8.1
exec.start: |
chown git:git /var/db/gitea && \
sed -i -e 's/HTTP_ADDR = 127.0.0.1/HTTP_ADDR = 127.0.8.1/g' /usr/local/etc/gitea/conf/app.ini && \
sed -i -e 's/127.0.0.1/127.0.8.1/g' /usr/local/etc/gitea/conf/app.ini && \
sed -i -e 's/ChangeMeBeforeRunning/J#NNOWn377ijsmfjmw54594702239ydhofh494j/g' /usr/local/etc/gitea/conf/app.ini && \
if [ ! -f /var/db/gitea/gitea.db ]; then \
su git -c 'gitea migrate -c /usr/local/etc/gitea/conf/app.ini' && \
su git -c 'gitea admin -c /usr/local/etc/gitea/conf/app.ini create-user --username admin1 --password "AdminAdmin1+" --email "invaliduser@nonexistentdomain.com"'; \
fi && \
/bin/sh /etc/rc
certbot-gitea:


Loading…
Cancel
Save