1
0
Fork 0
mirror of https://github.com/demostf/setup synced 2026-06-03 16:44:06 +02:00

fix api setup

This commit is contained in:
Robin Appelman 2017-04-11 22:41:51 +02:00
commit 8e0dcc9f10
2 changed files with 9 additions and 1 deletions

View file

@ -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;
}
}

View file

@ -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: