mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 02:45:29 -04:00
Bind localhost when a proxy auth header is set
This commit is contained in:
parent
604c5d49a6
commit
6fa575cf4f
@ -49,6 +49,9 @@ class Server
|
||||
{% if flag?(:release) %}
|
||||
Kemal.config.env = "production"
|
||||
{% 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.run
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user