2020-11-10 14:23:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2025-09-12 05:40:24 +00:00
|
|
|
exec granian \
|
|
|
|
|
--host "::" \
|
|
|
|
|
--port "8080" \
|
|
|
|
|
--interface "wsgi" \
|
|
|
|
|
--no-ws \
|
2025-11-12 11:34:04 +00:00
|
|
|
--workers "${GRANIAN_WORKERS:-4}" \
|
2025-11-12 07:37:09 +00:00
|
|
|
--respawn-failed-workers \
|
|
|
|
|
--backpressure "${GRANIAN_BACKPRESSURE}" \
|
2025-09-12 05:40:24 +00:00
|
|
|
--loop "uvloop" \
|
|
|
|
|
--log \
|
|
|
|
|
--log-level "info" \
|
|
|
|
|
--access-log \
|
|
|
|
|
--working-dir "/opt/netbox/netbox/" \
|
|
|
|
|
--static-path-route "/static" \
|
|
|
|
|
--static-path-mount "/opt/netbox/netbox/static/" \
|
|
|
|
|
--pid-file "/tmp/granian.pid" \
|
2025-11-12 07:37:09 +00:00
|
|
|
"${GRANIAN_EXTRA_ARGS[@]}" \
|
2025-09-12 05:40:24 +00:00
|
|
|
"netbox.granian:application"
|