.
This commit is contained in:
parent
10b9cbeead
commit
a0a9496aef
@ -24,7 +24,7 @@ fd09::10 nas nas.ahlawat.com
|
|||||||
192.168.10.10 nas nas.ahlawat.com
|
192.168.10.10 nas nas.ahlawat.com
|
||||||
fd0a::10 nas nas.ahlawat.com
|
fd0a::10 nas nas.ahlawat.com
|
||||||
192.168.48.10 nas nas.ahlawat.com
|
192.168.48.10 nas nas.ahlawat.com
|
||||||
2001:470:f835::10 nas nas.ahlawat.com
|
2001:470:82a9::10 nas nas.ahlawat.com
|
||||||
|
|
||||||
#
|
#
|
||||||
# Imaginary network. 10.0.0.2 myname.my.domain myname 10.0.0.3 myfriend.my.domain myfriend
|
# Imaginary network. 10.0.0.2 myname.my.domain myname 10.0.0.3 myfriend.my.domain myfriend
|
||||||
|
@ -54,7 +54,7 @@ ifconfig_lagg0_9_ipv6="inet6 fd09::10/64 auto_linklocal accept_rtadv"
|
|||||||
ifconfig_lagg0_10="inet 192.168.10.10/24"
|
ifconfig_lagg0_10="inet 192.168.10.10/24"
|
||||||
ifconfig_lagg0_10_ipv6="inet6 fd0a::10/64 auto_linklocal accept_rtadv"
|
ifconfig_lagg0_10_ipv6="inet6 fd0a::10/64 auto_linklocal accept_rtadv"
|
||||||
ifconfig_lagg0_48="inet 192.168.48.10/24"
|
ifconfig_lagg0_48="inet 192.168.48.10/24"
|
||||||
ifconfig_lagg0_48_ipv6="inet6 2001:470:f835::10/64 auto_linklocal accept_rtadv"
|
ifconfig_lagg0_48_ipv6="inet6 2001:470:82a9::10/64 auto_linklocal accept_rtadv"
|
||||||
|
|
||||||
ifconfig_bridge1="addm lagg0.1 up"
|
ifconfig_bridge1="addm lagg0.1 up"
|
||||||
ifconfig_bridge2="addm lagg0.2 up"
|
ifconfig_bridge2="addm lagg0.2 up"
|
||||||
|
20
jails/config/git/gitea-restart.sh
Executable file
20
jails/config/git/gitea-restart.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/local/bin/bash
|
||||||
|
|
||||||
|
# Copyright (c) 2018-2021, diyIT.org
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# BSD 2-Clause License ("Simplified BSD License" or "FreeBSD License")
|
||||||
|
# https://diyit.org/license/
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
Q=`netstat -LAan | grep 3000 | cut -f3 -d" " | cut -f1 -d/`
|
||||||
|
# Q is null if gitea service is not running
|
||||||
|
|
||||||
|
if [ ! "$Q" ] || [ $Q -ne 0 ]; then
|
||||||
|
echo "restarting gitea stuck at $Q"
|
||||||
|
tail /var/log/gitea/gitea.log
|
||||||
|
kill -9 `pgrep gitea` ; sleep 2 ; service gitea start
|
||||||
|
fi
|
||||||
|
|
||||||
|
# crontab - 5 * * * * /mnt/config/gitea-restart.sh
|
@ -188,7 +188,8 @@ backend bk_ahlawat-cloud
|
|||||||
http-response add-header X-Frame-Options: SAMEORIGIN
|
http-response add-header X-Frame-Options: SAMEORIGIN
|
||||||
|
|
||||||
backend bk_ahlawat-git
|
backend bk_ahlawat-git
|
||||||
server srv1 gitx.ahlawat.com:3000 check ssl ca-file /mnt/certs/cacert.pem alpn h2
|
timeout queue 8s
|
||||||
|
server srv1 gitx.ahlawat.com:3000 check ssl maxconn 32 ca-file /mnt/certs/cacert.pem alpn h2
|
||||||
server srv2 web.ahlawat.com:443 backup check ssl ca-file /mnt/certs/cacert.pem alpn h2
|
server srv2 web.ahlawat.com:443 backup check ssl ca-file /mnt/certs/cacert.pem alpn h2
|
||||||
http-response set-header X-Frame-Options "ALLOW-FROM *.diyit.org"
|
http-response set-header X-Frame-Options "ALLOW-FROM *.diyit.org"
|
||||||
# http-response add-header X-Frame-Options: SAMEORIGIN
|
# http-response add-header X-Frame-Options: SAMEORIGIN
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
# Set rules command prefix
|
# Set rules command prefix
|
||||||
cmd="ipfw -q add"
|
cmd="ipfw -q add"
|
||||||
lif="epair0b" # interface name of VNET attached to Local network
|
lif="epair0b" # interface name of VNET attached to Local network
|
||||||
rif="tun1" # interface name of Tunnel attached to Remote network
|
rif="tun0" # interface name of Tunnel attached to Remote network
|
||||||
skip="skipto 12000"
|
skip="skipto 12000"
|
||||||
|
|
||||||
# Flush out the list before we begin.
|
# Flush out the list before we begin.
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
diff -ru / configs | grep -v "Only in /" | grep "Only in" | sed 's/Only in // ; s/: /\//' | xargs -n1 echo WILL DELETE
|
diff -ru / configs | grep -v "Only in /" | grep "Only in" | sed 's/Only in // ; s/: /\//' | xargs -n1 echo WILL DELETE
|
||||||
read -p "(y/N)? " RESP
|
read -p "Delete (y/N)? " RESP
|
||||||
if [ ! -z $RESP ] && [ $RESP == "y" ]; then
|
if [ ! -z $RESP ] && [ $RESP == "y" ]; then
|
||||||
diff -ru / configs | grep -v "Only in /" | grep "Only in" | sed 's/Only in // ; s/: /\//' | xargs -n1 rm
|
diff -ru / configs | grep -v "Only in /" | grep "Only in" | sed 's/Only in // ; s/: /\//' | xargs -n1 rm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
diff -ru / configs | grep -v "Only in /" | grep "diff -ru" | sed 's/diff -ru//' | xargs -n2 echo WILL COPY
|
diff -ru / configs | grep -v "Only in /" | grep "diff -ru" | sed 's/diff -ru//' | xargs -n2 echo WILL COPY
|
||||||
read -p "(y/N)? " RESP
|
read -p "Copy (y/N)? " RESP
|
||||||
if [ ! -z $RESP ] && [ $RESP == "y" ]; then
|
if [ ! -z $RESP ] && [ $RESP == "y" ]; then
|
||||||
diff -ru / configs | grep -v "Only in /" | grep "diff -ru" | sed 's/diff -ru//' | xargs -n2 cp
|
diff -ru / configs | grep -v "Only in /" | grep "diff -ru" | sed 's/diff -ru//' | xargs -n2 cp
|
||||||
fi
|
fi
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
diff -ru /mnt/ship/pxe pxe | grep -v "Only in /" | grep "Only in" | sed 's/Only in // ; s/: /\//' | xargs -n1 echo WILL DELETE
|
diff -ru /mnt/ship/pxe pxe | grep -v "Only in /" | grep "Only in" | sed 's/Only in // ; s/: /\//' | xargs -n1 echo WILL DELETE
|
||||||
read -p "(y/N)? " RESP
|
read -p "Delete (y/N)? " RESP
|
||||||
if [ ! -z $RESP ] && [ $RESP == "y" ]; then
|
if [ ! -z $RESP ] && [ $RESP == "y" ]; then
|
||||||
diff -ru /mnt/ship/pxe pxe | grep -v "Only in /" | grep "Only in" | sed 's/Only in // ; s/: /\//' | xargs -n1 rm
|
diff -ru /mnt/ship/pxe pxe | grep -v "Only in /" | grep "Only in" | sed 's/Only in // ; s/: /\//' | xargs -n1 rm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
diff -ru /mnt/ship/pxe pxe | grep -v "Only in /" | grep "diff -ru" | sed 's/diff -ru//' | xargs -n2 echo WILL COPY
|
diff -ru /mnt/ship/pxe pxe | grep -v "Only in /" | grep "diff -ru" | sed 's/diff -ru//' | xargs -n2 echo WILL COPY
|
||||||
read -p "(y/N)? " RESP
|
read -p "Copy (y/N)? " RESP
|
||||||
if [ ! -z $RESP ] && [ $RESP == "y" ]; then
|
if [ ! -z $RESP ] && [ $RESP == "y" ]; then
|
||||||
diff -ru /mnt/ship/pxe pxe | grep -v "Only in /" | grep "diff -ru" | sed 's/diff -ru//' | xargs -n2 cp
|
diff -ru /mnt/ship/pxe pxe | grep -v "Only in /" | grep "diff -ru" | sed 's/diff -ru//' | xargs -n2 cp
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user