docker/web/Caddyfile
author ymh <ymh.work@gmail.com>
Wed, 17 Jul 2024 22:46:52 +0200
changeset 702 2a6e667b1610
permissions -rw-r--r--
make hdalab work locally

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
            }
        }
    }
}