10 lines
537 B
Bash
Executable File
10 lines
537 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
SRC="$(cd "$(dirname "$0")/.." && pwd)/nginx/srv1361159.hstgr.cloud"
|
|
DST="/etc/nginx/sites-available/srv1361159.hstgr.cloud"
|
|
install -o root -g root -m 644 "$SRC" "$DST"
|
|
nginx -t
|
|
systemctl reload nginx
|
|
echo "OK: deployed $SRC -> $DST and nginx reloaded."
|
|
echo "Tip: ถ้า POST อัปโหลดรูปผ่าน Admin API ยังว่าง body — ตั้ง PHP-FPM post_max_size ≥20M (เช่น pool www.conf) · If uploads still fail, raise PHP post_max_size to match nginx 20M."
|