部署指南
🌐 Deployment guides
以下指南涵盖了在反向代理后部署 Strapi 以及在进程管理器下运行它的方法。它们都假设你已经创建了一个 Strapi 项目,并且已阅读常规部署指南。
🌐 The following guides cover serving Strapi behind a reverse proxy and running it under a process manager. They all assume a Strapi project that is created and that you have read the general deployment guidelines.
使用 Caddy 进行代理
通过 Caddy 反向代理提供 Strapi 服务,并自动启用 HTTPS。
使用 HAProxy 进行代理
通过 HTTPS 使用 HAProxy 负载均衡器来提供 Strapi 服务。
使用 Nginx 代理
通过 HTTPS 使用 Nginx 反向代理来提供 Strapi 服务。
使用 Traefik 进行代理
通过 Traefik 用 HTTPS 提供容器化的 Strapi 应用。
使用 PM2 进程管理器
用 PM2 保持 Strapi 运行,并在重启后再次启动它。
有关在第三方平台上托管以及生产部署需要满足的一般要求,请参见部署页面。
🌐 For hosting on a 3rd-party platform, and for the general requirements a production deployment has to meet, see the deployment page.