docker setuo

This commit is contained in:
Devit
2026-03-28 22:10:52 +05:00
parent bbddec954d
commit cdda18a554
7 changed files with 2488 additions and 1 deletions

30
docker/nginx/default.conf Normal file
View File

@@ -0,0 +1,30 @@
server {
listen 80;
index index.php index.html;
server_name cazappadmin.uz;
root /var/www/html/public;
client_max_body_size 100M;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass app:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
}
location /storage/ {
# CORS headers
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Origin, Content-Type, Accept';
}
location ~ /\.ht {
deny all;
}
}

5
docker/php/php.ini Normal file
View File

@@ -0,0 +1,5 @@
[PHP]
post_max_size = 100M
upload_max_filesize = 100M
variables_order = EGPCS
pcov.directory = .