Commit Graph

8 Commits

Author SHA1 Message Date
Tim Bendt
772f2199b7 fix mime types
asked gemini pro 3
2025-11-29 23:47:45 -05:00
Tim Bendt
3d9cb7507a Simplify nginx template by removing conditional root block
- Removed if(NIXPACKS_PHP_ROOT_DIR) conditional block
- Set root directly to /app since NIXPACKS_PHP_ROOT_DIR variable not set
- This fixes nginx config issues and simplifies template
- Ensures consistent behavior across all deployments
2025-11-29 21:27:57 -05:00
Tim Bendt
003b467a21 Fix nginx index directive order for root directory
- Changed index order from 'index.html index.htm index.php' to 'index.html index.php index.htm'
- This fixes 403 forbidden errors when accessing root directory
- index.html should be checked first for root requests, then index.php
- Resolves directory listing forbidden errors in container logs
2025-11-29 21:09:59 -05:00
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