Skip to content

Commit

Permalink
fix an issue where locally stored videos could not be retrieved due t…
Browse files Browse the repository at this point in the history
…o cors
  • Loading branch information
mszulik committed Sep 12, 2024
1 parent bc5c444 commit f2c616e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions docker/location-root.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
location / {
add_header 'Access-Control-Allow-Origin' '*' always;

try_files $uri $uri/ /index.php?$query_string;
}

0 comments on commit f2c616e

Please sign in to comment.