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!
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Fockerfile 1.9KB

il y a 4 ans
il y a 4 ans
1234567891011121314151617181920212223242526272829303132
  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. /root/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=/root/secrets.ini && \
  16. crudini --set --inplace $GITEA_CONF "" APP_NAME "ADARED:Code" && \
  17. crudini --set --inplace $GITEA_CONF ui THEMES gitea && \
  18. crudini --set --inplace $GITEA_CONF api ENABLE_SWAGGER false && \
  19. crudini --set --inplace $GITEA_CONF server DISABLE_SSH true && \
  20. crudini --set --inplace $GITEA_CONF service DEFAULT_ALLOW_CREATE_ORGANIZATION false && \
  21. crudini --set --inplace $GITEA_CONF service DEFAULT_KEEP_EMAIL_PRIVATE true && \
  22. crudini --set --inplace $GITEA_CONF repository MAX_CREATION_LIMIT 0 && \
  23. crudini --set --inplace $GITEA_CONF server LANDING_PAGE explore && \
  24. crudini --set --inplace $GITEA_CONF service DISABLE_REGISTRATION true && \
  25. crudini --set --inplace $GITEA_CONF repository DEFAULT_REPO_UNITS repo.code && \
  26. crudini --set --inplace $GITEA_CONF oauth2 JWT_SECRET `crudini --get $SECRET_CONF oauth2 JWT_SECRET` && \
  27. crudini --set --inplace $GITEA_CONF security INTERNAL_TOKEN `crudini --get $SECRET_CONF security INTERNAL_TOKEN` && \
  28. crudini --set --inplace $GITEA_CONF security SECRET_KEY `crudini --get $SECRET_CONF security SECRET_KEY` && \
  29. rm -v $SECRET_CONF && \
  30. sed -i -e '/<link rel="mask-icon"/ d' $GITEA_TMPL_BASE/head.tmpl && \
  31. sed -i -e 's/<a href="{{AppSubUrl}}\/">$/<a href="https:\/\/adared.ch\/">/' $GITEA_TMPL_BASE/head_navbar.tmpl