pixel/api/config.php

17 lines
791 B
PHP
Raw Permalink Normal View History

2026-06-04 02:03:59 +09:00
<?php
// Pixel Island shared backend configuration.
// Place this public_html folder as-is. SQLite DB is created under ../_data/ on first API access.
return [
2026-06-04 14:37:03 +09:00
'db_path' => getenv('PIXEL_ISLAND_DB_PATH') ?: dirname(__DIR__) . DIRECTORY_SEPARATOR . '_data' . DIRECTORY_SEPARATOR . 'pixel_island.sqlite',
2026-06-04 02:03:59 +09:00
'world_width' => 144,
'world_height' => 112,
'max_assets_per_account' => 220,
'max_world_objects' => 1000,
'publish_limit_first_day' => 5,
'publish_limit_trusted' => 10,
'trusted_after_ms' => 24 * 60 * 60 * 1000,
'max_json_bytes' => 5 * 1024 * 1024,
// Set an arbitrary long token here if you use admin/index.php.
// Example: 'admin_token' => 'change-this-long-random-string',
2026-06-04 15:08:25 +09:00
'admin_token' => '$GJwk1jkawjfkwa542jgr545kwpGfA5keajfZawj',
2026-06-04 02:03:59 +09:00
];