Files
attack-defense-platform/utils/bashrc
T
Hermes 7d6258e94e fix: use bookworm base for blogpost; route receiver history via :18080
- blogpost: python:3.11-slim-bullseye is EOL (apt 404s), switch to bookworm
- utils/bashrc: host port 80 is taken by Traefik/Coolify, preexec posts to :18080
- ignore receiver .venv
2026-09-23 13:54:46 +08:00

2 lines
213 B
Bash

source /root/.preexec.sh
preexec() { curl -s -X POST -H 'Content-Type: application/json' -d "{\"log\": \"[$(date +'%Y-%m-%d %H:%M:%S')][$(hostname)] $1\"}" http://host.docker.internal:18080/history > /dev/null; }