Remove torii redirect dispatching (#309)
* Remove torii redirect dispatching * Add Caddy dev config
This commit is contained in:
4
config/dev/tlsproxy/Caddyfile
Normal file
4
config/dev/tlsproxy/Caddyfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{$SITE_ADDRESS}:443 {
|
||||||
|
reverse_proxy identifier:80
|
||||||
|
tls internal
|
||||||
|
}
|
||||||
@@ -369,10 +369,6 @@ defmodule Dispatcher do
|
|||||||
# frontend layer
|
# 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
|
match "/assets/*path", %{ layer: :api } do
|
||||||
Proxy.forward conn, path, "http://frontend/assets/"
|
Proxy.forward conn, path, "http://frontend/assets/"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user