You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1KB

  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://localhost:8010;
  14. }
  15. # Server sent event (sse) settings
  16. location /sse {
  17. proxy_buffering off;
  18. proxy_pass http://localhost:8010;
  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://localhost:8010;
  26. proxy_read_timeout 6000s;
  27. }