aboutsummaryrefslogtreecommitdiffstats
path: root/roles/relayd/templates
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-01-24 16:42:45 +0100
committerbinary <me@rgoncalves.se>2021-01-24 16:42:45 +0100
commit6f402c3dfbc3d4702c1b758f60afbec912ca2c24 (patch)
treeee98dc68de6b0f8ec1110092994b68ef954ac0bd /roles/relayd/templates
parent461f8a25fadd7e86640a4db1b87a0eef7636d443 (diff)
downloadinfrastructure-6f402c3dfbc3d4702c1b758f60afbec912ca2c24.tar.gz
Force http to https with httpd block return from relayd
Diffstat (limited to 'roles/relayd/templates')
-rw-r--r--roles/relayd/templates/relayd.conf.j29
1 files changed, 2 insertions, 7 deletions
diff --git a/roles/relayd/templates/relayd.conf.j2 b/roles/relayd/templates/relayd.conf.j2
index 243a0cc..1b48d7d 100644
--- a/roles/relayd/templates/relayd.conf.j2
+++ b/roles/relayd/templates/relayd.conf.j2
@@ -70,13 +70,8 @@ http protocol "http" {
relay "www" {
listen on egress port 80
protocol "http"
- forward to <local> port 80 check icmp
-{% for hostname in groups["servers"] %}
-{% set h = dict(hostvars[hostname]) %}
-{% for service in h.services if service.domain is defined %}
- forward to <{{ hostname }}> port {{ service.port }} check icmp
-{% endfor %}
-{% endfor %}
+ # assume httpd reverse proxy is running for https redirection
+ forward to <local> port 8888 check icmp
}
relay "wwwtls" {
remember that computers suck.