Skip to content

Commit

Permalink
redirect to captive portal
Browse files Browse the repository at this point in the history
- that's enough for what it's used for
- lighttpd is throwing 400 on reverse for some reason
  • Loading branch information
rgaudin committed Aug 17, 2024
1 parent fff87ff commit 8bb2535
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/offspot_demo/multi-proxy/gen-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,7 @@ def from_line(cls, text: str):
}
http://_captive.{{demo.dns_alias}}.{$FQDN}, https://_captive.{{demo.dns_alias}}.{$FQDN} {
reverse_proxy http://{$HOST_IP}:{{demo.captive_port}}
handle_errors 502 {
respond "The “{{demo.ident}}” captive demo is not available or ready. \
Please retry later.\n\n\
HTTP {http.error.status_code}: {http.error.message}" 502
}
handle_errors {
respond "HTTP {http.error.status_code} for ”{{ident}}” captive: {http.error.message}" {http.error.status_code}
}
}
redir http://{{demo.dns_alias}}.{$FQDN}:{{demo.captive_port}}
{% endfor %}
http://*.{$FQDN}, https://*.{$FQDN} {
Expand Down

0 comments on commit 8bb2535

Please sign in to comment.