選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

main.yaml 1.2KB

123456789101112131415161718192021222324252627282930
  1. ---
  2. _local_facts:
  3. database_password: "{% if not ansible_local.buildbot.database_password is defined %}{{ lookup('password', '/dev/null length=16 chars=ascii_letters') }}{% else %}{{ ansible_local.buildbot.database_password }}{% endif %}"
  4. buildbot_database_url: "postgresql://{{buildbot_db_user}}:{{buildbot_db_pass}}@localhost:5432/{{buildbot_db_name}}"
  5. buildbot_nginx_vhosts:
  6. - name: buildbot
  7. server_names:
  8. - "{{ buildbot_server_name }}"
  9. # from https://www.digitalocean.com/community/tutorials/how-to-configure-buildbot-with-ssl-using-an-nginx-reverse-proxy
  10. custom: |-
  11. location / {
  12. include proxy_params;
  13. proxy_pass http://unix:/run/buildbot/{{buildbot_server_name}}.www.sock;
  14. }
  15. # Server sent event (sse) settings
  16. location /sse {
  17. proxy_buffering off;
  18. proxy_pass http://unix:/run/buildbot/{{buildbot_server_name}}.www.sock;
  19. }
  20. # Websocket settings
  21. location /ws {
  22. proxy_http_version 1.1;
  23. proxy_set_header Upgrade $http_upgrade;
  24. proxy_set_header Connection "upgrade";
  25. proxy_pass http://unix:/run/buildbot/{{buildbot_server_name}}.www.sock;
  26. proxy_read_timeout 6000s;
  27. }