@@ -37,6 +37,14 @@ | |||||
group: buildbot | group: buildbot | ||||
mode: 0700 | mode: 0700 | ||||
- name: buildbot run directory | |||||
file: | |||||
path: /run/buildbot | |||||
state: directory | |||||
owner: buildbot | |||||
group: www-data | |||||
mode: u=rwx,g=rx,o= | |||||
# source of unit file from https://github.com/buildbot/buildbot-contrib/blob/master/master/contrib/systemd/buildbot%40.service | # source of unit file from https://github.com/buildbot/buildbot-contrib/blob/master/master/contrib/systemd/buildbot%40.service | ||||
- name: buildbot systemd service unit | - name: buildbot systemd service unit | ||||
copy: | copy: | ||||
@@ -18,7 +18,7 @@ c['titleURL'] = "https://github.com/covid-videoplattform" | |||||
c['buildbotURL'] = "https://{{buildbot_server_name}}/" | c['buildbotURL'] = "https://{{buildbot_server_name}}/" | ||||
c['www'] = dict( | c['www'] = dict( | ||||
port=8010, | |||||
port="unix:address=/run/buildbot/{{buildbot_server_name}}.www.sock", | |||||
plugins = dict( | plugins = dict( | ||||
waterfall_view={}, | waterfall_view={}, | ||||
console_view={}, | console_view={}, | ||||
@@ -12,12 +12,12 @@ buildbot_nginx_vhosts: | |||||
custom: |- | custom: |- | ||||
location / { | location / { | ||||
include proxy_params; | include proxy_params; | ||||
proxy_pass http://localhost:8010; | |||||
proxy_pass http://unix:/run/buildbot/{{buildbot_server_name}}.www.sock; | |||||
} | } | ||||
# Server sent event (sse) settings | # Server sent event (sse) settings | ||||
location /sse { | location /sse { | ||||
proxy_buffering off; | proxy_buffering off; | ||||
proxy_pass http://localhost:8010; | |||||
proxy_pass http://unix:/run/buildbot/{{buildbot_server_name}}.www.sock; | |||||
} | } | ||||
# Websocket settings | # Websocket settings | ||||
@@ -25,6 +25,6 @@ buildbot_nginx_vhosts: | |||||
proxy_http_version 1.1; | proxy_http_version 1.1; | ||||
proxy_set_header Upgrade $http_upgrade; | proxy_set_header Upgrade $http_upgrade; | ||||
proxy_set_header Connection "upgrade"; | proxy_set_header Connection "upgrade"; | ||||
proxy_pass http://localhost:8010; | |||||
proxy_pass http://unix:/run/buildbot/{{buildbot_server_name}}.www.sock; | |||||
proxy_read_timeout 6000s; | proxy_read_timeout 6000s; | ||||
} | } |