241-327_Deev_ASD/lab-2/caddy/Caddyfile

24 lines
359 B
Caddyfile

{
auto_https off
}
:80 {
redir https://{host}{uri} permanent
}
:443 {
tls /run/secrets/lab2_crt /run/secrets/lab2_key
handle_path /static/* {
root * /staticfiles
file_server
}
handle /admin/* {
reverse_proxy backend_service:8000
}
handle /api/* {
reverse_proxy backend_service:8000
}
}