Created
July 12, 2023 23:49
-
-
Save hir4k/3743edcb4a6481649533923538174c57 to your computer and use it in GitHub Desktop.
Django Caddy Config Copied From Baserow
This file contains hidden or 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
| { | |
| {$BASEROW_CADDY_GLOBAL_CONF} | |
| } | |
| {$BASEROW_CADDY_ADDRESSES} { | |
| handle /api/* { | |
| reverse_proxy {$PRIVATE_BACKEND_URL:localhost:8000} | |
| } | |
| handle /ws/* { | |
| reverse_proxy {$PRIVATE_BACKEND_URL:localhost:8000} | |
| } | |
| handle_path /media/* { | |
| @downloads { | |
| query dl=* | |
| } | |
| header @downloads Content-disposition "attachment; filename={query.dl}" | |
| file_server { | |
| root {$MEDIA_ROOT:/baserow/media/} | |
| } | |
| } | |
| handle_path /static/* { | |
| file_server { | |
| root {$STATIC_ROOT:/baserow/static/} | |
| } | |
| } | |
| reverse_proxy {$PRIVATE_WEB_FRONTEND_URL:localhost:3000} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment