Skip to content
Discussion options

You must be logged in to vote

Absolutely not.

You can run the Octane application without Nginx. FrankenPHP is not required either. You can do that with Roadrunner or Swoole. Just bind the process on port 80 and (for example) configure the Cloudflare proxy to handle the frontend.

php artisan octane:start --host=0.0.0.0 --port=80

Note: you'll probably need to send headers manually from your application.
For that purpose, you can use Laravel's built-in middleware. For example:

Route::get('/', fn () => view('welcome'))
    ->name('home')
    ->middleware('cache.headers:public;max_age=31536000');

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gazzoy
Comment options

Answer selected by gazzoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants