uwsgi-cgi: adds luci webui and cgi-io vassals config
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
This commit is contained in:
parent
e8a391e9c7
commit
6cc1ae7fd5
3 changed files with 57 additions and 1 deletions
|
@ -62,7 +62,9 @@ define Package/uwsgi-cgi/install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/uwsgi-cgi-luci-support/install
|
define Package/uwsgi-cgi-luci-support/install
|
||||||
|
$(INSTALL_DIR) $(1)/etc/uwsgi/vassals
|
||||||
|
$(INSTALL_DATA) ./files-luci-support/luci-webui.ini $(1)/etc/uwsgi/vassals/luci-webui.ini
|
||||||
|
$(INSTALL_DATA) ./files-luci-support/luci-cgi_io.ini $(1)/etc/uwsgi/vassals/luci-cgi_io.ini
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,uwsgi-cgi))
|
$(eval $(call BuildPackage,uwsgi-cgi))
|
||||||
|
|
23
net/uwsgi-cgi/files-luci-support/luci-cgi_io.ini
Normal file
23
net/uwsgi-cgi/files-luci-support/luci-cgi_io.ini
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
[uwsgi]
|
||||||
|
strict = true
|
||||||
|
socket = /var/run/luci-cgi_io.socket
|
||||||
|
cgi-mode = true
|
||||||
|
cgi = /www/
|
||||||
|
buffer-size = 10000
|
||||||
|
reload-mercy = 8
|
||||||
|
max-requests = 2000
|
||||||
|
limit-as = 200
|
||||||
|
reload-on-as = 256
|
||||||
|
reload-on-rss = 192
|
||||||
|
no-orphans = true
|
||||||
|
post-buffering = 8192
|
||||||
|
socket-timeout = 120
|
||||||
|
thunder-lock = true
|
||||||
|
#logger = syslog:uwsgi-luci-cgi_io
|
||||||
|
disable-logging = true
|
||||||
|
chmod-socket = 666
|
||||||
|
cgi-safe = /usr/libexec/cgi-io
|
||||||
|
cgi-dontresolve = true
|
||||||
|
cgi-close-stdin-on-eof = true
|
||||||
|
cheap = true
|
||||||
|
idle = 360
|
31
net/uwsgi-cgi/files-luci-support/luci-webui.ini
Normal file
31
net/uwsgi-cgi/files-luci-support/luci-webui.ini
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
[uwsgi]
|
||||||
|
strict = true
|
||||||
|
socket = /var/run/luci-webui.socket
|
||||||
|
cgi-mode = true
|
||||||
|
cgi = /www/
|
||||||
|
chdir = /usr/lib/lua/luci/
|
||||||
|
buffer-size = 10000
|
||||||
|
reload-mercy = 8
|
||||||
|
max-requests = 2000
|
||||||
|
limit-as = 200
|
||||||
|
reload-on-as = 256
|
||||||
|
reload-on-rss = 192
|
||||||
|
no-orphans = true
|
||||||
|
vacuum = true
|
||||||
|
enable-threads = true
|
||||||
|
post-buffering = 8192
|
||||||
|
socket-timeout = 120
|
||||||
|
thunder-lock = true
|
||||||
|
#logger = syslog:uwsgi-luci
|
||||||
|
disable-logging = true
|
||||||
|
log-format = %(addr) %(method) %(uri) => generated %(rsize) bytes in %(msecs) msecs
|
||||||
|
threads = 3
|
||||||
|
processes = 3
|
||||||
|
chmod-socket = 666
|
||||||
|
cheap = true
|
||||||
|
cheaper-algo = spare
|
||||||
|
cheaper = 1
|
||||||
|
cheaper-initial = 2
|
||||||
|
cheaper-step = 1
|
||||||
|
master = true
|
||||||
|
idle = 360
|
Loading…
Reference in a new issue