Skip to content

Commit

Permalink
open cors
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Nov 11, 2024
1 parent 848141a commit 5ea48e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.git*
*.mov
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM caddy:alpine

# open CORS so other repos can pull our fonts, etc.
RUN sed -i 's=file_server=file_server\nheader {\nAccess-Control-Allow-Origin *\n}\n=' \
/etc/caddy/Caddyfile && cat /etc/caddy/Caddyfile

WORKDIR /usr/share/caddy/
COPY . .

0 comments on commit 5ea48e3

Please sign in to comment.