diff --git a/docker/Dockerfile b/docker/Dockerfile index 55af16a..9a14095 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -11,6 +11,7 @@ LABEL com.centurylinklabs.watchtower.lifecycle.post-update="/var/www/html/docker COPY . /var/www/html COPY ./docker/workers.conf /opt/docker/etc/supervisor.d/ +COPY ./docker/location-root.conf /opt/docker/etc/nginx/vhost.common.d/10-location-root.conf RUN composer install --no-interaction --no-dev diff --git a/docker/location-root.conf b/docker/location-root.conf new file mode 100644 index 0000000..4b1f14d --- /dev/null +++ b/docker/location-root.conf @@ -0,0 +1,5 @@ +location / { + add_header 'Access-Control-Allow-Origin' '*' always; + + try_files $uri $uri/ /index.php?$query_string; +}