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!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 line
1.4KB

  1. base: gitea-logo
  2. steps:
  3. - copy:
  4. - [ files/body_inner_pre.tmpl,
  5. /usr/local/share/gitea/templates/custom/body_inner_pre.tmpl ]
  6. - [ files/secrets.ini,
  7. /tmp/secrets.ini ]
  8. - run: |
  9. export GITEA_CONF=/usr/local/etc/gitea/conf/app.ini && \
  10. export SECRET_CONF=/tmp/secrets.ini && \
  11. crudini --set --inplace $GITEA_CONF server DISABLE_SSH true && \
  12. crudini --set --inplace $GITEA_CONF service DEFAULT_ALLOW_CREATE_ORGANIZATION false && \
  13. crudini --set --inplace $GITEA_CONF service DEFAULT_KEEP_EMAIL_PRIVATE true && \
  14. crudini --set --inplace $GITEA_CONF repository MAX_CREATION_LIMIT 0 && \
  15. crudini --set --inplace $GITEA_CONF server LANDING_PAGE explore && \
  16. crudini --set --inplace $GITEA_CONF service DISABLE_REGISTRATION true && \
  17. crudini --set --inplace $GITEA_CONF repository DEFAULT_REPO_UNITS repo.code && \
  18. crudini --set --inplace $GITEA_CONF oauth2 JWT_SECRET `crudini --get $SECRET_CONF oauth2 JWT_SECRET` && \
  19. crudini --set --inplace $GITEA_CONF security INTERNAL_TOKEN `crudini --get $SECRET_CONF security INTERNAL_TOKEN` && \
  20. crudini --set --inplace $GITEA_CONF security SECRET_KEY `crudini --get $SECRET_CONF security SECRET_KEY` && \
  21. rm -v $SECRET_CONF && \
  22. sed -i -e '/<link rel="mask-icon"/ d' /usr/local/share/gitea/templates/base/head.tmpl