0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

Properly set host on http server.

This commit is contained in:
Andrey Antukh 2022-01-12 12:42:11 +01:00
parent eb10f075b9
commit 4216e2e92b

View file

@ -47,9 +47,9 @@
server))
(defmethod ig/init-key ::server
[_ {:keys [handler router port name metrics] :as opts}]
(l/info :msg "starting http server" :port port :name name)
(let [options {:http/port port}
[_ {:keys [handler router port name metrics host] :as opts}]
(l/info :msg "starting http server" :port port :host host :name name)
(let [options {:http/port port :http/host host}
handler (cond
(fn? handler) handler
(some? router) (wrap-router router)