Skip to content

Commit

Permalink
ci: caddyfile siascan api
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Freska authored and alexfreska committed Sep 28, 2023
1 parent 4d52c65 commit 85e0a14
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions server/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,26 @@ beta.siascan.com {
reverse_proxy localhost:5005
}

api.siascan.com {
import cloudflare
encode gzip

# temporary, will be included in the explorer API
handle_path /revenue* {
uri strip_prefix /revenue
reverse_proxy localhost:10005
}

handle_path /zen/revenue* {
uri strip_prefix /zen_revenue
reverse_proxy localhost:11005
}

route * {
respond 404
}
}

host.sia.tech {
encode gzip
reverse_proxy localhost:3006
Expand Down

0 comments on commit 85e0a14

Please sign in to comment.