Add config options for host binding and port

This commit is contained in:
Omar Roth 2019-09-23 13:05:29 -04:00
parent 466a5a932b
commit 8c2ddb0255
No known key found for this signature in database
GPG key ID: B8254FB7EC3D37F2
2 changed files with 4 additions and 0 deletions

View file

@ -5324,4 +5324,6 @@ add_context_storage_type(Preferences)
add_context_storage_type(User)
Kemal.config.logger = logger
Kemal.config.host_binding = Kemal.config.host_binding != "0.0.0.0" ? Kemal.config.host_binding : CONFIG.host_binding
Kemal.config.port = Kemal.config.port != 3000 ? Kemal.config.port : CONFIG.port
Kemal.run