nginx
nginx serves static files and forwards LaiRu requests to LaiRu FPM through FastCGI.
Target
Use nginx for TLS, static assets, compression, redirects, and friendly URL rewrites. Pass .lasso requests, or rewritten front-controller requests, to lairu-fpm. The important parameters are SCRIPT_FILENAME, DOCUMENT_ROOT, REQUEST_URI, QUERY_STRING, and PATH_INFO.
When using a front controller, try_files should serve real static files first and then rewrite application routes to index.lasso.
Examples
Working pattern
1fastcgi_pass unix:/run/lairu/lairu-fpm.sock;Use this as a focused starting point and adapt it in context.
Front controller with static file fallback
1server {2 listen 80;3 server_name example.test;4 root /var/www/html;5 index index.lasso index.html;67 location / {8 try_files $uri $uri/ /index.lasso?$query_string;9 }1011 location ~ \.lasso$ {12 include fastcgi_params;13 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;14 fastcgi_param DOCUMENT_ROOT $document_root;15 fastcgi_param PATH_INFO $fastcgi_path_info;16 fastcgi_pass unix:/run/lairu/lairu-fpm.sock;17 }18}The web server document root and the LaiRu document root should describe the same site boundary.