mirror of
https://github.com/demostf/setup
synced 2026-06-04 00:54:07 +02:00
fix api setup
This commit is contained in:
parent
84b44151eb
commit
8e0dcc9f10
2 changed files with 9 additions and 1 deletions
8
api.tmpl
8
api.tmpl
|
|
@ -10,4 +10,12 @@ server {
|
|||
index index.php;
|
||||
|
||||
try_files $uri /index.php?$query_string /index.php;
|
||||
|
||||
location ~ ^(.+?\.php)(/.*)?$ {
|
||||
fastcgi_param PATH_INFO $2;
|
||||
fastcgi_pass api:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME /app/src/public/index.php;
|
||||
include fastcgi_params;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ services:
|
|||
environment:
|
||||
- HOST=${HOST}
|
||||
- UPLOAD_FASTCGI=api:9000
|
||||
- UPLOAD_SCRIPT=/app/public/upload.php
|
||||
- UPLOAD_SCRIPT=/app/src/public/upload.php
|
||||
networks:
|
||||
- proxy-tier
|
||||
depends_on:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue