Skip to content

Commit

Permalink
Bind to 0.0.0.0
Browse files Browse the repository at this point in the history
TODO; make configuration option
  • Loading branch information
wardle committed Apr 19, 2021
1 parent ba0de39 commit f93ebba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/com/eldrix/hermes/server.clj
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,12 @@
["/v1/snomed/crossmap/:refset-id/:code" :get (conj common-routes get-map-from)]
["/v1/snomed/search" :get [service-error-handler coerce-body content-neg-intc entity-render get-search]]}))

;; TODO(mw): make a configuration option
(def service-map
{::http/routes routes
::http/type :jetty
::http/port 8081})
::http/port 8081
::http/host "0.0.0.0"})

(defn start-server
([svc port] (start-server svc port true))
Expand Down

0 comments on commit f93ebba

Please sign in to comment.