Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

80 wiersze
1.7KB

  1. _local_facts:
  2. database_password: "{% if not ansible_local[role_name].database_password is defined %}{{ lookup('password', '/dev/null length=16 chars=ascii_letters') }}{% else %}{{ ansible_local[role_name].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: postgres
  38. - section: database
  39. option: HOST
  40. value: localhost
  41. #value: "/run/postgresql/"
  42. - section: database
  43. option: NAME
  44. value: "{{gitea_db_name}}"
  45. - section: database
  46. option: USER
  47. value: "{{gitea_db_user}}"
  48. - section: database
  49. option: PASSWD
  50. value: "{{gitea_db_pass}}"
  51. - section: log
  52. option: ROOT_PATH
  53. value: /var/log/gitea
  54. # see: Support automatic installation via configuration management (ansible, puppet, chef, etc) #2324
  55. # https://github.com/go-gitea/gitea/issues/2324
  56. - section: security
  57. option: INSTALL_LOCK
  58. value: true
  59. - section: security
  60. option: DISABLE_GIT_HOOKS
  61. value: true