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.

6 anos atrás
6 anos atrás
6 anos atrás
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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