update config

pull/171/head
233boy 6 years ago
parent d559d9b794
commit c3fe1396ec
  1. 9
      config/server/include/ban.json
  2. 1
      src/download-caddy.sh
  3. 1
      src/download-v2ray.sh

@ -9,10 +9,19 @@
"domain:epochtimes.ru",
"domain:epochtimes.co.il",
"domain:epochtimes.co.kr",
"domain:epochtimes.cz",
"domain:epochtimes.nl",
"domain:epochtimes.it",
"domain:epochtimes.pl",
"domain:epochtimes.com.br",
"domain:epochtimes.se",
"domain:epochtimestr.com",
"domain:epochtimes.com.ua",
"domain:epochtimes-romania.com",
"domain:erabaru.net",
"domain:lagranepoca.com",
"domain:theepochtimes.com",
"domain:ntd.com",
"domain:ntdtv.com",
"domain:ntd.tv",
"domain:ntdtv-dc.com",

@ -27,6 +27,7 @@ _install_caddy_service() {
if [[ $systemd ]]; then
cp -f ${caddy_tmp}init/linux-systemd/caddy.service /lib/systemd/system/
# sed -i "s/www-data/root/g" /lib/systemd/system/caddy.service
sed -i "/on-abnormal/a RestartSec=3" /lib/systemd/system/caddy.service
sed -i "s/on-abnormal/always/" /lib/systemd/system/caddy.service
systemctl enable caddy
else

@ -34,6 +34,7 @@ _download_v2ray_file() {
_install_v2ray_service() {
if [[ $systemd ]]; then
install -m 644 "/usr/bin/v2ray/systemd/v2ray.service" "/lib/systemd/system/"
sed -i '/on-failure/a RestartSec=3' /lib/systemd/system/v2ray.service
sed -i "s/on-failure/always/" /lib/systemd/system/v2ray.service
systemctl enable v2ray
else

Loading…
Cancel
Save