From 33740d1749ba4b96713097c27666ba1219907cd0 Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Mon, 31 Jul 2023 10:44:09 +0200 Subject: [PATCH] Remove torii redirect dispatching (#309) * Remove torii redirect dispatching * Add Caddy dev config --- config/dev/tlsproxy/Caddyfile | 4 ++++ config/dispatcher/dispatcher.ex | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 config/dev/tlsproxy/Caddyfile diff --git a/config/dev/tlsproxy/Caddyfile b/config/dev/tlsproxy/Caddyfile new file mode 100644 index 0000000..12323fa --- /dev/null +++ b/config/dev/tlsproxy/Caddyfile @@ -0,0 +1,4 @@ +{$SITE_ADDRESS}:443 { + reverse_proxy identifier:80 + tls internal +} diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index 24d7df3..8dcb356 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -369,10 +369,6 @@ defmodule Dispatcher do # frontend layer ############################################################### - match "/authorization/callback/*_path", %{ accept: [:html], layer: :api } do - Proxy.forward conn, [], "http://frontend/torii/redirect.html" - end - match "/assets/*path", %{ layer: :api } do Proxy.forward conn, path, "http://frontend/assets/" end