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.

31 lines
1.2KB

  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. }