chore(secrets): retire les webhooks Discord et l'état runtime du git avant hébergement public
- scripts antiflood/ipwatch/uptime-check chargent désormais leur webhook depuis scripts/.webhooks (gitignoré) au lieu d'un token en dur - suppression scripts/antiflood.sh.bak-before-cpu-removal (doublon mort) - untrack + gitignore des fichiers d'état runtime (.ipwatch-state/offset, .synbase, .synstate, .uptime-state) contenant des IP opérationnelles
This commit is contained in:
parent
03c0c134fe
commit
f27387b525
4 changed files with 17 additions and 3 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
|
@ -50,3 +50,11 @@ data/maxspeed/*.log
|
||||||
|
|
||||||
# sensitive / personal
|
# sensitive / personal
|
||||||
duckdns_token_do_not_open.txt
|
duckdns_token_do_not_open.txt
|
||||||
|
|
||||||
|
# secrets & runtime state (ne jamais committer)
|
||||||
|
scripts/.webhooks
|
||||||
|
scripts/.synbase
|
||||||
|
scripts/.synstate
|
||||||
|
scripts/.uptime-state
|
||||||
|
scripts/.ipwatch-offset
|
||||||
|
scripts/.ipwatch-state
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,9 @@
|
||||||
# Le funnel + playit sont réactivés automatiquement quand ça redescend.
|
# Le funnel + playit sont réactivés automatiquement quand ça redescend.
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
WEBHOOK="https://discord.com/api/webhooks/***REMOVED***"
|
# Webhook Discord chargé depuis un fichier local gitignoré (jamais commité).
|
||||||
|
source /home/riricdev/zektyc/scripts/.webhooks
|
||||||
|
WEBHOOK="${ANTIFLOOD_WEBHOOK:-}"
|
||||||
STATE_FILE="/home/riricdev/zektyc/scripts/.synstate"
|
STATE_FILE="/home/riricdev/zektyc/scripts/.synstate"
|
||||||
BASE_FILE="/home/riricdev/zektyc/scripts/.synbase"
|
BASE_FILE="/home/riricdev/zektyc/scripts/.synbase"
|
||||||
LOG="/var/log/zektyc-syn.log"
|
LOG="/var/log/zektyc-syn.log"
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,9 @@
|
||||||
# tentatives a augmenté depuis le dernier rapport.
|
# tentatives a augmenté depuis le dernier rapport.
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
WEBHOOK="https://discord.com/api/webhooks/***REMOVED***"
|
# Webhook Discord chargé depuis un fichier local gitignoré (jamais commité).
|
||||||
|
source /home/riricdev/zektyc/scripts/.webhooks
|
||||||
|
WEBHOOK="${IPWATCH_WEBHOOK:-}"
|
||||||
INTERVAL=30
|
INTERVAL=30
|
||||||
STATE="/home/riricdev/zektyc/scripts/.ipwatch-state" # IP:compteur déjà signalés
|
STATE="/home/riricdev/zektyc/scripts/.ipwatch-state" # IP:compteur déjà signalés
|
||||||
NGINX_LOG="/var/log/nginx/access.log"
|
NGINX_LOG="/var/log/nginx/access.log"
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,9 @@
|
||||||
set -uo pipefail
|
set -uo pipefail
|
||||||
|
|
||||||
URL="https://riricdev.tail5ea5cd.ts.net/"
|
URL="https://riricdev.tail5ea5cd.ts.net/"
|
||||||
WEBHOOK="https://discord.com/api/webhooks/***REMOVED***"
|
# Webhook Discord chargé depuis un fichier local gitignoré (jamais commité).
|
||||||
|
source /home/riricdev/zektyc/scripts/.webhooks
|
||||||
|
WEBHOOK="${ANTIFLOOD_WEBHOOK:-}"
|
||||||
STATE_FILE="/home/riricdev/zektyc/scripts/.uptime-state"
|
STATE_FILE="/home/riricdev/zektyc/scripts/.uptime-state"
|
||||||
INTERVAL=5
|
INTERVAL=5
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue