-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement caddy as a much cleaner alternative to traefik; closes #60 …
…; thanks @Bouni
- Loading branch information
1 parent
4edf72e
commit 36f0ff5
Showing
3 changed files
with
62 additions
and
59 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ DOMAIN_NAME=localhost | |
EMAIL_ADDRESS=[email protected] | ||
|
||
# Prod | ||
#DOMAIN_NAME=vps.modisch.me | ||
#DOMAIN_NAME=cutsolver.modisch.me | ||
#[email protected] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
email {$EMAIL_ADDRESS} | ||
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory | ||
|
||
admin off | ||
log { | ||
format console | ||
} | ||
} | ||
|
||
# remove once everyone forgot about it | ||
vps.modisch.me { | ||
redir /cutsolver https://{$DOMAIN_NAME} permanent | ||
} | ||
|
||
{$DOMAIN_NAME} { | ||
reverse_proxy /solve cutsolver | ||
reverse_proxy cutsolver_frontend | ||
|
||
# optional, but recommended from here | ||
reverse_proxy /version cutsolver | ||
reverse_proxy /constants cutsolver | ||
reverse_proxy /debug cutsolver | ||
|
||
reverse_proxy /docs cutsolver | ||
reverse_proxy /redoc cutsolver | ||
reverse_proxy /openapi.json cutsolver | ||
|
||
respond /ping "pong at {$DOMAIN_NAME}" | ||
} |
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