diff --git a/nginx.template b/nginx.template new file mode 100644 index 000000000..ab859fbdc --- /dev/null +++ b/nginx.template @@ -0,0 +1,37 @@ +server { + listen 2100; + listen [::]:2100; + server_name _; + root /app/lurana/luos/workflow/public_html; + + index index.html index.php; + + try_files $uri $uri/ /index.php?$args; + charset utf-8; + + location / { + try_files $uri $uri/ /app.php?$query_string; + } + + location ~ \.php$ { + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass unix:/var/run/php/lurana-fpm.sock; + + fastcgi_index app.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME /app/lurana/luos/workflow/public_html/app.php; + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_intercept_errors off; + + fastcgi_buffers 8 16k; + fastcgi_buffer_size 32k; + fastcgi_connect_timeout 300; + fastcgi_send_timeout 300; + fastcgi_read_timeout 300; + + } + + location ~ /\.ht { + deny all; + } +}