Commit Graph

5 Commits

Author SHA1 Message Date
Tim Bendt
1be98c62bc Fix nginx root location handling for index.html
- Updated try_files directive to serve index.html for root requests
- Changed from 'try_files  / =404;' to 'try_files  / /index.html =404;'
- This fixes 403 error when requesting bare domain URL
- Ensures proper fallback to index.html for root directory requests
2025-11-29 20:51:54 -05:00
Tim Bendt
73e80f6533 Fix nginx template to use correct path for third_party assets
- Changed alias from ${NIXPACKS_PHP_ROOT_DIR}/pancake/third_party to /app/pancake/third_party
- This fixes 404 errors for JS/CSS files with query strings
- NIXPACKS_PHP_ROOT_DIR variable not being set properly in containers
- Static assets now serve correctly from all containers
2025-11-29 18:05:58 -05:00
Tim Bendt
040f0d2d15 Fix nginx config for Pancake pretty URLs and static assets
- Update pancake/third_party alias path to use correct NIXPACKS_PHP_ROOT_DIR
- Add proper pretty URL handling with @pancake_fallback location
- Fix SCRIPT_FILENAME to use $document_root instead of $realpath_root
- Enables Apache .htaccess equivalent functionality in nginx

This resolves issues where:
- Static assets in pancake/third_party were returning 404
- Pretty URLs without index.php were not working correctly
- Pancake application routing was broken
2025-11-29 16:13:50 -05:00
Tim Bendt
9027fe6b1d try supervisord 2025-11-29 15:21:22 -05:00
Tim Bendt
19c08ffaa1 template file 2025-11-29 14:50:12 -05:00