summaryrefslogtreecommitdiff
path: root/baserock_frontend/haproxy.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'baserock_frontend/haproxy.cfg')
-rw-r--r--baserock_frontend/haproxy.cfg13
1 files changed, 10 insertions, 3 deletions
diff --git a/baserock_frontend/haproxy.cfg b/baserock_frontend/haproxy.cfg
index 025e21e9..76494878 100644
--- a/baserock_frontend/haproxy.cfg
+++ b/baserock_frontend/haproxy.cfg
@@ -58,12 +58,13 @@ frontend https-in
acl host_irclogs hdr(host) -m beg -i irclogs
use_backend baserock_irclogs_http if host_irclogs
+ acl host_spec hdr(host) -m beg -i spec
+ acl host_spec hdr(host) -m beg -i docs
+ use_backend baserock_spec_http if host_spec
+
acl host_download hdr(host) -m beg -i download
use_backend baserock_webserver_http if host_download
- acl host_docs hdr(host) -m beg -i docs
- use_backend baserock_webserver_http if host_docs
-
use_backend baserock_openid_provider_http if { hdr(host) -m beg -i openid }
frontend ssh-in:
@@ -83,6 +84,12 @@ frontend ssh-in:
# Entries here locate each server backend.
+backend baserock_spec_http
+ # Point to Gitlab pages url. This repository has to have configured
+ # alternative domain names in order to make this redirection work.
+ # Otherwise Gitlab will just show a 404 page
+ server baserock_spec baserock.gitlab.io:80
+
backend baserock_gerrit_http
server baserock_gerrit 192.168.222.69:8080