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!
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

30 linhas
1.7KB

  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/header.tmpl,
  7. /usr/local/share/gitea/templates/custom/header.tmpl ]
  8. - [ files/custom.css,
  9. /usr/local/share/gitea/public/css/custom.css ]
  10. - [ files/secrets.ini,
  11. /tmp/secrets.ini ]
  12. - run: |
  13. export GITEA_CONF=/usr/local/etc/gitea/conf/app.ini && \
  14. export GITEA_TMPL_BASE=/usr/local/share/gitea/templates/base && \
  15. export SECRET_CONF=/tmp/secrets.ini && \
  16. crudini --set --inplace $GITEA_CONF server DISABLE_SSH true && \
  17. crudini --set --inplace $GITEA_CONF service DEFAULT_ALLOW_CREATE_ORGANIZATION false && \
  18. crudini --set --inplace $GITEA_CONF service DEFAULT_KEEP_EMAIL_PRIVATE true && \
  19. crudini --set --inplace $GITEA_CONF repository MAX_CREATION_LIMIT 0 && \
  20. crudini --set --inplace $GITEA_CONF server LANDING_PAGE explore && \
  21. crudini --set --inplace $GITEA_CONF service DISABLE_REGISTRATION true && \
  22. crudini --set --inplace $GITEA_CONF repository DEFAULT_REPO_UNITS repo.code && \
  23. crudini --set --inplace $GITEA_CONF oauth2 JWT_SECRET `crudini --get $SECRET_CONF oauth2 JWT_SECRET` && \
  24. crudini --set --inplace $GITEA_CONF security INTERNAL_TOKEN `crudini --get $SECRET_CONF security INTERNAL_TOKEN` && \
  25. crudini --set --inplace $GITEA_CONF security SECRET_KEY `crudini --get $SECRET_CONF security SECRET_KEY` && \
  26. rm -v $SECRET_CONF && \
  27. sed -i -e '/<link rel="mask-icon"/ d' $GITEA_TMPL_BASE/head.tmpl && \
  28. sed -i -e 's/<a href="{{AppSubUrl}}\/">$/<a href="https:\/\/adared.ch\/">/' $GITEA_TMPL_BASE/head_navbar.tmpl