瀏覽代碼

provide webserver over unix socket

covid-videoplattform
父節點
當前提交
277b61f9c0
共有 3 個檔案被更改,包括 12 行新增4 行删除
  1. +8
    -0
      tasks/master.yaml
  2. +1
    -1
      templates/buildbot/master.cfg.j2
  3. +3
    -3
      vars/main.yaml

+ 8
- 0
tasks/master.yaml 查看文件

@@ -37,6 +37,14 @@
group: buildbot
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
- name: buildbot systemd service unit
copy:


+ 1
- 1
templates/buildbot/master.cfg.j2 查看文件

@@ -18,7 +18,7 @@ c['titleURL'] = "https://github.com/covid-videoplattform"
c['buildbotURL'] = "https://{{buildbot_server_name}}/"

c['www'] = dict(
port=8010,
port="unix:address=/run/buildbot/{{buildbot_server_name}}.www.sock",
plugins = dict(
waterfall_view={},
console_view={},


+ 3
- 3
vars/main.yaml 查看文件

@@ -12,12 +12,12 @@ buildbot_nginx_vhosts:
custom: |-
location / {
include proxy_params;
proxy_pass http://localhost:8010;
proxy_pass http://unix:/run/buildbot/{{buildbot_server_name}}.www.sock;
}
# Server sent event (sse) settings
location /sse {
proxy_buffering off;
proxy_pass http://localhost:8010;
proxy_pass http://unix:/run/buildbot/{{buildbot_server_name}}.www.sock;
}

# Websocket settings
@@ -25,6 +25,6 @@ buildbot_nginx_vhosts:
proxy_http_version 1.1;
proxy_set_header Upgrade $http_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;
}

Loading…
取消
儲存