mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-05 00:00:44 -04:00
Bind localhost when a proxy auth header is set
This commit is contained in:
@@ -49,6 +49,9 @@ class Server
|
|||||||
{% if flag?(:release) %}
|
{% if flag?(:release) %}
|
||||||
Kemal.config.env = "production"
|
Kemal.config.env = "production"
|
||||||
{% end %}
|
{% end %}
|
||||||
|
unless Config.current.auth_proxy_header_name.empty?
|
||||||
|
Kemal.config.host_binding = "127.0.0.1"
|
||||||
|
end
|
||||||
Kemal.config.port = Config.current.port
|
Kemal.config.port = Config.current.port
|
||||||
Kemal.run
|
Kemal.run
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user