Liking cljdoc? Tell your friends :D

nginx.clojure.embed


*nginx-work-dir*clj

source

default-handlerclj

source

default-jvm-init-handlerclj

source

run-serverclj

(run-server nginx-conf)
(run-server handler options)

Starts an embeded nginx server where nginx-clojure module has been built into, e.g. (1) Starts it with ring handler and an options map (run-server my-app {:port 8080})

(2) Starts it with a nginx.conf file (run-server "/my-dir/nginx.conf")

(3) Starts it with a given work dir (binding [nginx-work-dir my-work-dir] (run-server ...))

Starts an embeded nginx server where nginx-clojure module has been built into, e.g.
(1) Starts it with ring handler and an options map
 (run-server my-app {:port 8080})

(2) Starts it with a nginx.conf file
 (run-server "/my-dir/nginx.conf")

(3) Starts it with a given work dir
 (binding [*nginx-work-dir* my-work-dir]
   (run-server ...))
sourceraw docstring

stop-serverclj

(stop-server)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close