:80 {
    # APT (Debian) packages at /apt/
    handle /apt/* {
        uri strip_prefix /apt
        root * /data/apt
        file_server browse
    }

    # Alpine packages at /apk/
    handle /apk/* {
        uri strip_prefix /apk
        root * /data/apk
        file_server browse
    }

    # PyPI packages at /simple/ (existing)
    handle /simple/* {
        uri strip_prefix /simple
        root * /data/pypi
        file_server browse
    }

    # Conda packages at /conda/
    handle /conda/* {
        uri strip_prefix /conda
        root * /data/conda
        file_server browse
        header Cache-Control "max-age=3600"
    }

    # Default 404 for unmapped paths
    handle {
        respond 404
    }
}
