mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add basic IPv6 support and replace haproxy by nginx for VPS failover
This commit is contained in:
parent
2f4e19176c
commit
715d53300d
23 changed files with 1419 additions and 9 deletions
13
luci-app-nginx-ha/root/etc/uci-defaults/42_luci-nginx-ha
Normal file
13
luci-app-nginx-ha/root/etc/uci-defaults/42_luci-nginx-ha
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@nginx-ha[-1]
|
||||
add ucitrack nginx-ha
|
||||
set ucitrack.@nginx-ha[-1].init=nginx-ha
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
/etc/init.d/nginx-ha enable >/dev/null 2>&1
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue