Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

67 lines
1.5KB

  1. _gitea_local_facts:
  2. database_password: "{% if not ansible_local.gitea.database_password is defined %}{{ lookup('password', '/dev/null length=15 chars=ascii_letters') }}{% else %}{{ ansible_local.gitea.database_password }}{% endif %}"
  3. _gitea_nginx_vhosts:
  4. - name: gitea
  5. server_names:
  6. - "{{ gitea_server_name }}"
  7. locations:
  8. - location: /
  9. proxy_pass: http://localhost:3000
  10. _gitea_config:
  11. - section: null
  12. option: RUN_MODE
  13. value: prod
  14. - section: null
  15. option: APP_NAME
  16. value: "{{ gitea_app_name | default(gitea_server_name) }}"
  17. - section: server
  18. option: HTTP_ADDR
  19. value: "{{ gitea_http_addr }}"
  20. - section: server
  21. option: HTTP_PORT
  22. value: "{{ gitea_http_port }}"
  23. - section: server
  24. option: ROOT_URL
  25. value: "https://{{ gitea_server_name }}/"
  26. - section: server
  27. option: DOMAIN
  28. value: "{{ gitea_server_name }}"
  29. - section: server
  30. option: SSH_DOMAIN
  31. value: "{{ gitea_server_name }}"
  32. - section: repository
  33. option: ROOT
  34. value: /srv/git/repos
  35. - section: database
  36. option: DB_TYPE
  37. value: sqlite3
  38. - section: database
  39. option: PATH
  40. value: "/var/lib/gitea/data/gitea.db"
  41. - section: log
  42. option: ROOT_PATH
  43. value: /var/log/gitea
  44. # see: Support automatic installation via configuration management (ansible, puppet, chef, etc) #2324
  45. # https://github.com/go-gitea/gitea/issues/2324
  46. - section: security
  47. option: INSTALL_LOCK
  48. value: true
  49. - section: security
  50. option: DISABLE_GIT_HOOKS
  51. value: true