hdalab.iri-research.org {
    tls internal

    redir / /hdalab/
    rewrite /hdalab /hdalab/

    handle_path /static/* {
        root * /static
        file_server
    }
    
    handle_path /hdalab/* {
        reverse_proxy server:8000 {
            transport uwsgi {
                uwsgi_param SCRIPT_NAME /hdalab
                uwsgi_param UWSGI_SCHEME https
            }
        }
    }
}