Merge pull request #71 from ekini/feature/parametrise_nginx

This commit is contained in:
Ron
2023-07-15 19:53:35 +08:00
committed by GitHub
2 changed files with 6 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
# alpine is more secure
FROM nginx:stable-alpine
COPY docker/httpd/vhost.conf /etc/nginx/conf.d/default.conf
COPY api/public/ /var/www/html/api/public/
ENV NGINX_APPLICATION_HOSTNAME application
COPY docker/httpd/vhost.conf /etc/nginx/templates/default.conf.template
COPY api/public/ /var/www/html/api/public/

View File

@@ -34,7 +34,7 @@ server {
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_pass application:9000;
fastcgi_pass ${NGINX_APPLICATION_HOSTNAME}:9000;
fastcgi_index index.php;
}
}
}