This commit is contained in:
Mikan
2026-02-13 21:58:35 +03:00
parent 60204db3d2
commit 71ffcc89bf
10 changed files with 213 additions and 227 deletions

11
scripts/reload-nginx.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR="$SCRIPT_DIR/.."
CERTS_DIR="$ROOT_DIR/nginx/certs"
cp "$CERTS_DIR/default.crt" "$CERTS_DIR/default.key" "$CERTS_DIR/"
docker compose -f "$ROOT_DIR/docker-compose.yml" exec nginx-proxy nginx -s reload 2>/dev/null || \
docker compose -f "$ROOT_DIR/docker-compose.yml" restart nginx-proxy