Create a new field within WGServer that will monitor any modifications made to the wg configuration files. Furthermore, implement a health check for the container.

This commit is contained in:
Shahrad Elahi
2023-10-08 12:24:39 +03:30
parent 8ab5b0b0fc
commit 3928a84677
8 changed files with 63 additions and 35 deletions

View File

@@ -91,6 +91,6 @@ echo -e "========================================================\n"
sleep 1
# After 10 seconds, export the database to the WireGuard config file
screen -dm bash -c "sleep 10; curl -s -o /dev/null http://127.0.0.1:3000/api/wireguard/regen"
screen -dm bash -c "sleep 10; curl -s -o /dev/null http://127.0.0.1:3000/api/wireguard/healthcheck"
exec "$@"