laravel / octane

Supercharge your Laravel application's performance.
https://laravel.com/docs/octane
MIT License
3.75k stars 291 forks source link

[Doc]: NGINX configuration atleast. #268

Closed myckhel closed 3 years ago

myckhel commented 3 years ago

Now that octane stable version is about to be released, can we atleast see some example configurations?

I feel it will be good to add a deployment section to the docs stating how to deploy to production.

I think must of us doesn't know how to go about using the server in a production environment and since maybe this is the first time using laravel app as a server in production.

flc1125 commented 3 years ago
joaovitorp commented 3 years ago
server {
    root /data/wwwroot/;
    server_name teste.com;

    location / {
        proxy_http_version 1.1;
        proxy_set_header Connection "keep-alive";
        proxy_set_header X-Real-IP $remote_addr;
        if (!-e $request_filename) {
             proxy_pass http://127.0.0.1:8080;
        }
    }
}
n3m3s7s commented 3 years ago

check https://github.com/laravel/octane/issues/254