mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-06 06:15:51 +00:00
Merge pull request #71 from ekini/feature/parametrise_nginx
This commit is contained in:
@@ -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/
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user