Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable auto https #16

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# TLS Options
email {$ISSUER_ADDRESS}
acme_ca {$ACME_CA_ENDPOINT:https://acme-v02.api.letsencrypt.org/directory}
auto_https disable_redirects
# auto_https disable_redirects
key_type rsa2048

# Server Options
Expand Down
9 changes: 6 additions & 3 deletions vhosts/1api.enabled
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,15 @@
}

route @boxes_whitelist {
# no ratelimit for whitelisted ips
# higher ratelimit for whitelisted ips
import ratelimit 300 "1m"

reverse_proxy api:8000
}

route @boxes_whitelist_token {
# no ratelimit for whitelisted tokens
# higher ratelimit for whitelisted ips
import ratelimit 300 "1m"

reverse_proxy api:8000
}
Expand Down Expand Up @@ -141,7 +143,8 @@ http://{$INGRESS_DOMAIN} {
}

route @boxes_whitelist_token {
# no ratelimit for whitelisted tokens
# higher ratelimit for whitelisted ips
import ratelimit 300 "1m"

reverse_proxy api:8000
}
Expand Down
Loading