Created
December 11, 2023 01:13
-
-
Save lemonlatte/8c985bb0a9914cfc199cef402de1dd36 to your computer and use it in GitHub Desktop.
Simple Caddyfile
This file contains 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
https://localhost:8888 { | |
tls /usr/local/etc/ssl/localhost.pem /usr/local/etc/ssl/localhost-key.pem | |
handle_path /api* { | |
rewrite /api/ / | |
reverse_proxy localhost:8000 | |
} | |
reverse_proxy /* localhost:8080 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment