Files
ansible-lab/roles/heriverse/templates/Caddyfile.j2

26 lines
503 B
Django/Jinja

{{ server_name }} {
# Don't show ATON's frontend home page
redir / /a/heriverse 302
request_body {
max_size 2GB # This can be made configurable
}
# `handle_path` is required where URIs must be rewritten
handle_path /server/* {
reverse_proxy localhost:3000
}
handle /auth* {
reverse_proxy localhost:8080
}
handle_path /couchdb/* {
reverse_proxy localhost:5984
}
handle /* {
reverse_proxy localhost:8081
}
}