use nginx and php-fpm for docker

This commit is contained in:
2026-04-26 16:25:59 +03:30
parent 9cdf4c129b
commit e99aa9b8f1
5 changed files with 106 additions and 41 deletions

21
nginx/payment.conf Normal file
View File

@@ -0,0 +1,21 @@
server {
listen 80;
listen [::]:80;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ ^/index\.php(/|$) {
include fastcgi_params;
fastcgi_pass laravel:9000;
fastcgi_index index.php;
fastcgi_hide_header X-Powered-By;
fastcgi_param SCRIPT_FILENAME /var/www/payment/backend/public/index.php;
}
location ~ /\.(?!well-known).* {
deny all;
}
}