[users at bb.net] buildbot behind reverse proxy under URL prefix

Josh Bialkowski josh.bialkowski at gmail.com
Wed Jan 30 21:42:02 UTC 2019


I'm would like to run buildbot behind nginx as a reverse proxy, and I would
like it to be accessible under e.g. the `buildbot/` URL (as in
https://example.com/buildbot). I'm prototyping on `http://localhost` with
nginx listening on `8080` and buildbot on `8083` and I have so far been
unsuccessful in getting this to work. Does anyone have any guidance on how
to correctly configure this?

I'm not sure if it is possible with the current buildbot release but here
is what I have found so far:

* The buildbot documentation for the web server includes a section on
[reverse proxy][1] configuration with an nginx setup that looks exactly
like what I want. In this setup, the buildbot website is visible under the
`buildbot/` prefix. I don't see a mention of how to configure buildbot in
this case however.
* The `0.8.0` documentation for the old [WebStatus][2] plugin has a
`public_html` option that seems relevant, but there does not seem to be an
equivalent option in the new [Web Server][3]
* The [code comments][4] in `www/resource.py` seem to imply that the
`base_url`  is used in this way, but this seems to be just a [reference
to][5] the `buildbotURL` config dictionary option. So I tried setting this
option to `http://localhost:8083/buildbot/` but the buildbot main page
remains visible at `http://localhost:8083/` and displays this warning:

Warning: c['buildbotURL'] is misconfigured to
Should be:
* In this case `http://localhost:8083/buildbot` displays an empty page with
No Such Resource
File not found.
* This is also what I see through nginx at  `

Any help or suggestions would be appreciated. Thanks!

[2]: http://docs.buildbot.net/0.8.0/WebStatus.html
[3]: http://docs.buildbot.net/current/manual/configuration/www.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20190130/c38d216c/attachment.html>

More information about the users mailing list