File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,29 +5,10 @@ RUN apk add --no-cache nginx curl
55# ایجاد پوشهها
66RUN mkdir -p /var/www/html/api /var/run/php /var/lib/nginx/tmp
77
8- # کپی فایلهای تونل
8+ # کپی فایلها
99COPY api/sync.php /var/www/html/api/sync.php
1010COPY api/.htaccess /var/www/html/api/.htaccess
11-
12- # تنظیم nginx با روش صحیح
13- RUN cat > /etc/nginx/http.d/default.conf << 'EOF'
14- server {
15- listen 80 default_server;
16- root /var/www/html;
17- index index.php;
18-
19- location / {
20- try_files $uri $uri/ =404;
21- }
22-
23- location \~ \. php$ {
24- fastcgi_pass unix:/var/run/php-fpm.sock;
25- fastcgi_index index.php;
26- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
27- include fastcgi_params;
28- }
29- }
30- EOF
11+ COPY nginx.conf /etc/nginx/http.d/default.conf
3112
3213# تنظیم مجوزها
3314RUN chown -R www-data:www-data /var/www/html
You can’t perform that action at this time.
0 commit comments