Created
February 13, 2023 13:02
-
-
Save trapcodeio/27b4cc1cb47c25b229347af27f655fc7 to your computer and use it in GitHub Desktop.
Caddy Vue Config
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
domain { | |
root * /var/patch/dcc-front-vite/dist | |
file_server | |
try_files {path} /index.html | |
tls /etc/caddy/certs/tdm.pem /etc/caddy/certs/tdm.key | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
caddy.domain.me {
reverse_proxy localhost:3000
tls /etc/caddy/certs/domain.pem /etc/caddy/certs/domain.key
}
caddy2.domain.me {
root * /var/www/html/dist
file_server
try_files {path} /index.html
tls /etc/caddy/certs/domain.pem /etc/caddy/certs/domain.key
}