-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
services/nomad/infrastructure/nginx-mirror: add buildbot config
following upstream recommendations: https://docs.buildbot.net/current/manual/configuration/www.html#reverse-proxy-configuration Closes: #198 [via git-merge-pr]
- Loading branch information
1 parent
bf4e38d
commit 54b868e
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
services/nomad/infrastructure/nginx-sites/10-buildbot.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
server { | ||
include /etc/nginx/fragments/ssl.conf; | ||
listen 443 ssl http2; | ||
listen [::]:443 ssl http2; | ||
server_name build.voidlinux.org; | ||
|
||
proxy_set_header HOST $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header X-Forwarded-Server $host; | ||
proxy_set_header X-Forwarded-Host $host; | ||
|
||
location / { | ||
proxy_pass http://buildbot-www.service.consul:8010/; | ||
} | ||
|
||
location /sse/ { | ||
proxy_buffering off; | ||
proxy_pass http://buildbot-www.service.consul:8010/sse/; | ||
} | ||
|
||
location /ws { | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection $http_connection; | ||
proxy_pass http://buildbot-www.service.consul:8010/ws; | ||
proxy_read_timeout 6000s; | ||
} | ||
} |