Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d6ca3d8cc | ||
|
|
db7948d279 | ||
|
|
7cee3b3a97 | ||
|
|
01f8974314 |
@@ -1,5 +1,5 @@
|
||||
# Nexus nginx Security Hardening
|
||||
# Apply to the server block for nexus.hartmut-noerenberg.com
|
||||
# CapaKraken nginx Security Hardening
|
||||
# Apply to the server block for capakraken.hartmut-noerenberg.com
|
||||
#
|
||||
# References:
|
||||
# - EAPPS 3.3.1.3.04 (Server Header entfernen)
|
||||
@@ -113,5 +113,5 @@ log_format security '$remote_addr - $remote_user [$time_local] '
|
||||
'"$http_referer" "$http_user_agent" '
|
||||
'$request_time $upstream_response_time';
|
||||
|
||||
access_log /var/log/nginx/nexus_access.log security;
|
||||
error_log /var/log/nginx/nexus_error.log warn;
|
||||
access_log /var/log/nginx/capakraken_access.log security;
|
||||
error_log /var/log/nginx/capakraken_error.log warn;
|
||||
|
||||
@@ -63,7 +63,7 @@ docker compose -p "$OLD_PROJECT" -f "$COMPOSE_FILE" stop app 2>/dev/null || true
|
||||
echo "[2/7] Capturing pre-rename row counts..."
|
||||
PRE_COUNTS=$(docker compose -p "$OLD_PROJECT" -f "$COMPOSE_FILE" exec -T postgres \
|
||||
psql -U capakraken -d capakraken -t -c \
|
||||
"SELECT relname, n_live_tup FROM pg_stat_user_tables ORDER BY relname;")
|
||||
"SELECT table_name, n_live_tup FROM pg_stat_user_tables ORDER BY table_name;")
|
||||
echo "$PRE_COUNTS" | head -20
|
||||
echo "..."
|
||||
|
||||
@@ -149,7 +149,7 @@ sleep 15
|
||||
echo "=== Verification ==="
|
||||
POST_COUNTS=$(docker compose -p "$NEW_PROJECT" -f "$COMPOSE_FILE" exec -T postgres \
|
||||
psql -U nexus -d nexus -t -c \
|
||||
"SELECT relname, n_live_tup FROM pg_stat_user_tables ORDER BY relname;")
|
||||
"SELECT table_name, n_live_tup FROM pg_stat_user_tables ORDER BY table_name;")
|
||||
echo "Post-rename row counts (sample):"
|
||||
echo "$POST_COUNTS" | head -20
|
||||
|
||||
|
||||
Reference in New Issue
Block a user