mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-12-10 05:42:36 +00:00
Because the development of Nginx Unit has been stopped, switch the server to Granian which still allows to serve the Python application and the static files from one server.
19 lines
400 B
Bash
Executable file
19 lines
400 B
Bash
Executable file
#!/bin/bash
|
|
|
|
exec granian \
|
|
--host "::" \
|
|
--port "8080" \
|
|
--interface "wsgi" \
|
|
--no-ws \
|
|
--workers "4" \
|
|
--backpressure "4" \
|
|
--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" \
|
|
"netbox.granian:application"
|