mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
Reintroduce TFE duration metadata: DB columns, form fields, controllers, views, and migration
Add 'unsafe-eval' to CSP script-src directives (htmx requires Function())
This commit is contained in:
@@ -83,21 +83,6 @@ chown -R www-data:xamxam /var/www/xamxam/storage/cache
|
||||
chmod -R 2775 /var/www/xamxam/storage/cache
|
||||
ok "Cache dirs: created and owned by www-data:xamxam"
|
||||
|
||||
# ── Step 1b: htpasswd file ──────────────────────────────────────────────────────
|
||||
printf "\n📋 Step 1b: Checking htpasswd file...\n"
|
||||
echo "--------------------------------------"
|
||||
|
||||
if [ -f "/etc/nginx/.htpasswd-xamxam" ]; then
|
||||
ok "htpasswd file exists: /etc/nginx/.htpasswd-xamxam"
|
||||
elif [ -f "/etc/nginx/.htpasswd-posterg" ]; then
|
||||
cp /etc/nginx/.htpasswd-posterg /etc/nginx/.htpasswd-xamxam
|
||||
chmod 644 /etc/nginx/.htpasswd-xamxam
|
||||
ok "Migrated .htpasswd-posterg → .htpasswd-xamxam"
|
||||
else
|
||||
warn "No htpasswd file found — admin panel will return 403 until one is created"
|
||||
warn "Run: sudo htpasswd -c /etc/nginx/.htpasswd-xamxam <username>"
|
||||
fi
|
||||
|
||||
# ── Step 2: Nginx config ──────────────────────────────────────────────────────
|
||||
printf "\n📋 Step 2: Deploying nginx configuration...\n"
|
||||
echo "--------------------------------------------"
|
||||
|
||||
Reference in New Issue
Block a user