-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] any suggestion for nginx configuration for prod or dev #116
Comments
@xBigDaddyx if you need use nginx with laravel octane I will share the configuration |
@xBigDaddyx there is one problem with this setup that is zero downtime we can resolve this by blue-green strategy with nginx or traefik load balancer or use Docker Swarm and Kubernetes Rolling updates |
@xBigDaddyx I use this nginx configuration with laravel octane, reverb and frankenphp for production
|
@shahghasiadil thank you, i tried your config. now im facing always facing 502 when my app load a page of a filament widget. |
@xBigDaddyx can you share screen shot of nginx configuration? |
@shahghasiadil same exactly like your config, just changed the root path. other than filament widget there is no problem, working smoothly. but when im going to page and there is filament widgets on that page, octane crashed so nginx thrown 502. this is my command for running octane |
@xBigDaddyx did you try 0.0.0.0:8000 let me know if that works then the problem is in Nginx configuration, if 0.0.0.0:8000 had also same problem this means octane has an issue |
@shahghasiadil yes i tried, its works. |
@xBigDaddyx please share nginx conf |
|
is there any way to update the frankenphp caddy file to support the websockets proxy directly? if im building the image using WITH_REVERB=true and the octane server is hosted with frankenphp, then the frankenphp caddy file is used for the proxy yes? so wouldnt there be some way to include the websocket proxy directly with the caddyfile? I'm not really versed with caddy, or even http server configs but maybe something like this
not even sure where that would go, maybe in this section?
this is the one piece i can't seem to figure out, everything else seems to work fine, just can't get my app to connect to reverb at all. |
Hello,
I’m looking for guidance on setting up Nginx for both production and development environments.
Minimal setup for rapid iteration and debugging
Handling frequent code changes without downtime
Simplified logging for development purposes
If there are specific examples, templates, or configurations you recommend, I’d greatly appreciate it. Additionally, if there are any caveats or common pitfalls to be aware of when setting up Nginx for these environments, please let me know.
Thank you for your help!
The text was updated successfully, but these errors were encountered: