remove ansiblized shit

This commit is contained in:
root 2024-02-24 11:18:25 +00:00
parent 59617f164f
commit 1f453008b2
4 changed files with 0 additions and 99 deletions

View File

@ -1,8 +0,0 @@
#!/bin/bash
RSYNC_ARGS='--recursive --copy-links --copy-dirlinks --perms --xattrs --times --delete --verbose --compress --compress-choice=zstd --mkpath --cvs-exclude --human-readable --partial --progress'
# India Node
rsync ${RSYNC_ARGS} /var/cdn/ cdn@in.vpn.projectsegfau.lt:/var/cdn
rsync ${RSYNC_ARGS} /var/lib/cdn/bans.txt cdn@in.vpn.projectsegfau.lt:/var/lib/cdn/bans.txt
# US Node
rsync ${RSYNC_ARGS} /var/cdn/ cdn@us.vpn.projectsegfau.lt:/var/cdn
rsync ${RSYNC_ARGS} /var/lib/cdn/bans.txt cdn@us.vpn.projectsegfau.lt:/var/lib/cdn/bans.txt

View File

@ -1,55 +0,0 @@
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners
stats timeout 30s
user haproxy
group haproxy
daemon
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 3600000
timeout client 3600000
timeout server 3600000
timeout tunnel 3600000
listen ssh
bind :::22 v4v6
balance roundrobin
mode tcp
option tcp-check
tcp-check expect rstring SSH-2.0-OpenSSH.*
server pubnix 10.7.0.2:22 check inter 10s fall 2 rise 1
listen xrdp
bind :::3389 v4v6
balance roundrobin
mode tcp
option tcp-check
server pubnix 10.7.0.2:3389 check inter 10s fall 2 rise 1
listen gemini
bind :::1965 v4v6
balance roundrobin
mode tcp
option tcp-check
server pubnix 10.7.0.2:1965 check inter 10s fall 2 rise 1
listen soju
bind :::6697 v4v6
balance roundrobin
mode tcp
option tcp-check
server pubnix 10.7.0.2:6697 check inter 10s fall 2 rise 1
listen iperf3
bind :::5202 v4v6
balance roundrobin
mode tcp
option tcp-check
server pubnix 10.7.0.2:5201 check inter 10s fall 2 rise 1
listen nodexporter
bind :::9101 v4v6
balance roundrobin
mode tcp
option tcp-check
server pubnix 10.7.0.2:9100 check inter 10s fall 2 rise 1

View File

@ -1,4 +0,0 @@
# I2Pd Info
`i2pd_funcs` was borrowed from the ~vern team (https://vern.cc/admins) with some minor modifications.
i2pd config is the same as dpkg upstream.

View File

@ -1,32 +0,0 @@
#!/usr/bin/env bash
i2pown() { chmod 640 "$1" && chown i2pd:i2pd "$1"; }
geni2p() { /root/i2pd-tools/vain "$2" -o "$1" && i2pown "$1"; }
vgi2p() { for i in "$@"; do geni2p "/var/lib/i2pd/pjsf.$i.dat" "pjsf"; done; }
create_i2p() {
if [[ -z "$4" ]]; then
printf 'Usage: create_i2p service_name keyfile_name clearnet_domain port [type] [host] [inport]\n'
return 1
fi
[[ -f /var/lib/i2pd/pjsf.$2.dat ]] || vgi2p "$1"
printf '[%s]\ntype = %s\nhost = %s\nport = %s\nkeys = pjsf.%s.dat\n%s' "$3" "${5:-http}" "${6:-127.0.0.1}" "$4" "$2" "${7:+inport = $7}" | tee "/etc/i2pd/tunnels.d/$1.conf"
systemctl restart i2pd
}
delete_i2p() {
if [[ -z "$1" ]]; then
printf 'Usage: delete_i2p service_name\n'
return 1
fi
rm -f /var/lib/i2pd/pjsf.$1.dat
rm -f /etc/i2pd/tunnels.d/$1.conf
systemctl restart i2pd
}
i2pup() { export http_proxy="http://127.0.0.1:4444"; }
i2pdown() { unset http_proxy; }
i2pb32() { /root/i2pd-tools/keyinfo ~i2pd/pjsf.$1.dat; }
i2pb64() { /root/i2pd-tools/keyinfo -d ~i2pd/pjsf.$1.dat; }
i2pport() { grep -R '^port = '"$1"'$' /etc/i2pd/tunnels.d/; }