{
    admin off
    auto_https off
}

:8080 {
    encode

    # Proxy to backend
    handle_path /api* {
        reverse_proxy backend:8080
    }

    # Server static files
    handle_path /* {
        root * /app
        try_files {path} /index.html
        file_server
    }
}
