mirror of
https://github.com/elAgala/server-initializer.git
synced 2026-02-14 05:06:18 +00:00
Add monitoring_network | Add recommended coraza.conf
- Add monitoring_network for prometheus instance - Add Crowdsec & Caddy scrapes - Install make as dependency - Add Makefile for easily executing caddy commands
This commit is contained in:
18
templates/caddy/full/Makefile
Normal file
18
templates/caddy/full/Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
# Makefile for managing Caddy
|
||||
|
||||
.PHONY: caddy\:restart caddy\:update-api-key caddy\:logs
|
||||
|
||||
caddy\:restart:
|
||||
@echo "Formatting and reloading Caddy configuration..."
|
||||
docker exec caddy caddy fmt --overwrite --config /etc/caddy/Caddyfile
|
||||
docker exec caddy caddy reload --config /etc/caddy/Caddyfile
|
||||
@echo "Caddy configuration reloaded successfully."
|
||||
|
||||
caddy\:crowdsec-key
|
||||
@echo "Generating new CrowdSec API key..."
|
||||
@docker exec caddy caddy reload --config /etc/caddy/Caddyfile || true
|
||||
@echo "\n=== IMPORTANT ===\nCopy the API_KEY from the output above and replace the value of CROWDSEC_API_KEY in your .env file."
|
||||
|
||||
caddy\:logs:
|
||||
@echo "Showing Caddy logs..."
|
||||
docker compose logs -f caddy
|
||||
Reference in New Issue
Block a user