Skip to content

Instantly share code, notes, and snippets.

@rwboyer
Last active December 31, 2021 20:52
Show Gist options
  • Save rwboyer/d0dcef1a248fdb6ed325d35cc8ac255a to your computer and use it in GitHub Desktop.
Save rwboyer/d0dcef1a248fdb6ed325d35cc8ac255a to your computer and use it in GitHub Desktop.
[[redirects]]
from = "/admin/*"
to = "https://my-cool-services-somewhere-else.org/whatever-subroute-needed/:splat"
status = 200
force = true
signed = "API_SIGNATURE_TOKEN"
roles = ["admin"]
from = "/protectedapis/*"
to = "https://my-cool-services-somewhere-else.org/another-subroute-needed/:splat"
status = 200
force = true
signed = "API_SIGNATURE_TOKEN"
roles = ["admin", "notquiteadmin"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment