Created
December 14, 2022 17:20
-
-
Save BirkhoffLee/cc811d5bb8d5b073179a119ee5c25f33 to your computer and use it in GitHub Desktop.
Caddy on Docker for SPA website (e.g. Vue Router)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:3000 { | |
root * /app | |
try_files {path}.html {path} /index.html | |
file_server | |
header { | |
-server | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM caddy:2.6.2 | |
ADD ./dist/ /app | |
COPY ./Caddyfile /etc/caddy/Caddyfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment