Skip to content

Instantly share code, notes, and snippets.

@sanikkenway
Created January 28, 2026 02:06
Show Gist options
  • Select an option

  • Save sanikkenway/89b0125696e004cefad26f1c42b1ac8a to your computer and use it in GitHub Desktop.

Select an option

Save sanikkenway/89b0125696e004cefad26f1c42b1ac8a to your computer and use it in GitHub Desktop.
Laravel Frankenphp Files (via Laravel Octane)
{
# Enable FrankenPHP
frankenphp
# auto_https off
# encode zstd gzip
# Optional: better dev performance
order frankenphp before file_server
}
:8000 {
root * public
# Serve static files directly
file_server
# Laravel front controller
php_server {
resolve_root_symlink
index index.php
}
# Security headers (optional)
header {
X-Content-Type-Options nosniff
X-Frame-Options DENY
Referrer-Policy no-referrer-when-downgrade
}
}
memory_limit=512M
upload_max_filesize=50M
post_max_size=50M
max_execution_time=300
max_input_time=300
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=256
opcache.interned_strings_buffer=32
opcache.max_accelerated_files=20000
opcache.validate_timestamps=0
opcache.save_comments=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment