【发布时间】:2021-06-03 00:44:18
【问题描述】:
我正在开发一个项目,它使用 caddy 作为 Web 服务器和代理,django 作为后端,gunicorn 作为 wsgi。 但除了我无法提供静态文件之外,一切都运行良好。
这是我的球童档案。
mydomain.com {
root * /path/to/staticfile/
file_server
encode zstd gzip
@notstatic {
not path /path/to/staticfile/*
}
reverse_proxy @notstatic app:8000
}
我用的有什么问题吗?
【问题讨论】:
标签: django gunicorn static-files caddy