hara.runtime.nginx

+init+

access-logs

added in 4.0

(access-logs)(access-logs {:keys [state], :as rt})

gets the running nginx access log

all-nginx-active

added in 4.0

(all-nginx-active port)

gets all active nginx processes for a port

all-nginx-ports

added in 4.0

(all-nginx-ports)

gets all nginx ports on the system

dir-tree

added in 4.0

(dir-tree)(dir-tree {:keys [state], :as rt})

gets the running nginx access log

error-logs

added in 4.0

(error-logs)(error-logs {:keys [state], :as rt})

gets the running nginx error log

invoke-ptr-nginx

added in 4.0

(invoke-ptr-nginx rt ptr args)

evaluates lua ptr and arguments

kill-all-nginx

added in 4.0

(kill-all-nginx)

kills all runnig nginx processes

kill-nginx

kill-single-nginx

added in 4.0

(kill-single-nginx port)

kills nginx processes for a single port

make-conf

added in 4.0

(make-conf {:keys [conf-fn], :as rt})

creates a config

make-temp

added in 4.0

(make-temp rt)

makes a temp directory and conf

nginx

added in 4.0

(nginx)(nginx m)

creates and starts a dev nginx runtime

nginx-conf

added in 4.0

(nginx-conf)(nginx-conf {:keys [state], :as rt})

accesses the running ngx conf

nginx:create

added in 4.0

(nginx:create {:keys [id port], :as m, :or {id (f/sid), port (network/port:check-available 0)}})

creates a dev nginx runtime

raw-eval-nginx

added in 4.0

(raw-eval-nginx {:keys [scheme host port eval-path dev], :as rt} body)

posts a raw lua string to the dev server

start-test-server

added in 4.0

(start-test-server {:keys [port container], :as rt})

starts the test server for a given port

start-test-server-container

added in 4.0

(start-test-server-container {:keys [host port container], :as rt})

starts in container

start-test-server-shell

added in 4.0

(start-test-server-shell {:keys [host port], :as rt})

starts in shell

stop-nginx

(stop-nginx pg)

stop-test-server

added in 4.0

(stop-test-server {:keys [port no-server]})

stops the nginx test server