minigame 6 players position

This commit is contained in:
2026-04-28 08:32:50 +00:00
parent eb29e5636e
commit 08ac1f47a7
-12
View File
@@ -6,22 +6,11 @@ server {
server_name srv1361159.hstgr.cloud;
root /var/www/html;
index index.php index.html index.htm;
# กันค่าเริ่มต้น 1M ตัด POST (รูป base64 ผ่าน Admin API) — คู่กับบล็อก /Admin/api/ และ /Game/api/ ด้านล่าง
client_max_body_size 20M;
location / {
try_files $uri $uri/ =404;
}
# Admin API — JSON body ใหญ่ (รูป base64 อัปโหลดป้าย quiz_carry ฯลฯ) · ค่าเริ่มต้น nginx 1M ทำให้ POST ถูกตัดเงียบ ๆ
location ~ ^/Admin/api/.+\.php$ {
client_max_body_size 20M;
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
@@ -55,7 +44,6 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# รูปป้าย quiz_carry อัปโหลดจาก Admin — เก็บใต้ Game/public/img/quiz-carry-plaque-assets/ (เสิร์ฟโดย location /Game/ ด้านล่าง)
# Game (ZEP-like) — รูปตัวละครอยู่ที่ Node (data/characters)
location /Game/img/characters/ {
proxy_pass http://127.0.0.1:3001;