updated module to add epyc builders

This commit is contained in:
Luj 2023-07-26 19:34:55 +02:00
parent b2c4542a75
commit e59e9838e4
2 changed files with 6 additions and 5 deletions

View file

@ -88,15 +88,16 @@ in
extraConfig = '' extraConfig = ''
ssl_session_timeout 1440m; ssl_session_timeout 1440m;
ssl_session_cache shared:SSL:10m; ssl_session_cache shared:SSL:10m;
proxy_set_header Upgrade $http_upgrade;
''; '';
locations."/".proxyPass = "http://127.0.0.1:1810/"; locations."/".proxyPass = "http://[::]:1810/";
locations."/sse" = { locations."/sse" = {
proxyPass = "http://127.0.0.1:1810/sse/"; proxyPass = "http://[::]:1810/sse/";
# proxy buffering will prevent sse to work # proxy buffering will prevent sse to work
extraConfig = "proxy_buffering off;"; extraConfig = "proxy_buffering off;";
}; };
locations."/ws" = { locations."/ws" = {
proxyPass = "http://127.0.0.1:1810/ws"; proxyPass = "http://[::]:1810/ws";
proxyWebsockets = true; proxyWebsockets = true;
# raise the proxy timeout for the websocket # raise the proxy timeout for the websocket
extraConfig = "proxy_read_timeout 6000s;"; extraConfig = "proxy_read_timeout 6000s;";

View file

@ -225,7 +225,7 @@ def build_config() -> dict[str, Any]:
c["www"] = { c["www"] = {
"avatar_methods": [util.AvatarGitHub()], "avatar_methods": [util.AvatarGitHub()],
"port": int(os.environ.get("PORT", "1810")), 'port': "tcp:1810:interface=\\:\\:",
"auth": util.GitHubAuth("bba3e144501aa5b8a5dd", str(read_secret_file("github-oauth-secret")).strip()), "auth": util.GitHubAuth("bba3e144501aa5b8a5dd", str(read_secret_file("github-oauth-secret")).strip()),
"authz": util.Authz( "authz": util.Authz(
roleMatchers=[ roleMatchers=[
@ -269,7 +269,7 @@ def build_config() -> dict[str, Any]:
c["db"] = {"db_url": os.environ.get("DB_URL", "sqlite:///state.sqlite")} c["db"] = {"db_url": os.environ.get("DB_URL", "sqlite:///state.sqlite")}
c["protocols"] = {"pb": {"port": "tcp:9989:interface=127.0.0.1"}} c['protocols'] = {'pb': {'port': "tcp:interface=\\:\\::port=9989"}}
c["buildbotURL"] = BUILDBOT_URL c["buildbotURL"] = BUILDBOT_URL
c["collapseRequests"] = False c["collapseRequests"] = False