Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

added redirect for staging

Michael Rademaker966dad55de10
diff --git a/haproxy/demo/haproxy-demo.cfg b/haproxy/demo/haproxy-demo.cfg
index 60cc2a20a..484734c32 100644
--- a/haproxy/demo/haproxy-demo.cfg
+++ b/haproxy/demo/haproxy-demo.cfg
@@ -29,6 +29,9 @@ defaults
frontend http
bind *:80
+ #acl is_domain hdr(host) -i test1
+ #redirect code 302 location https://localhost/console/nbse if is_domain
+
# Serve certificate validation challenges directly with Lua plugin
acl url_acme_http01 path_beg /.well-known/acme-challenge/
http-request use-service lua.acme-http01 if METH_GET url_acme_http01
@@ -45,6 +48,9 @@ frontend https
reqadd X-Forwarded-Proto:\ https
rspadd Strict-Transport-Security:\ max-age=15768000
+ #acl is_domain hdr(host) -i test1
+ #redirect code 302 location https://localhost/console/nbse if is_domain
+
use_backend manager_server
backend manager_server
diff --git a/profile/haproxy_dev.yml b/profile/haproxy_dev.yml
index df398c0ad..bae996538 100644
--- a/profile/haproxy_dev.yml
+++ b/profile/haproxy_dev.yml
@@ -14,4 +14,6 @@ services:
- manager_dev:manager
ports:
- "80:80"
- - "443:443"
\ No newline at end of file
+ - "443:443"
+ #volumes:
+ # - ../haproxy/demo:/etc/haproxy/demo
\ No newline at end of file