diff --git a/README.md b/README.md index 06bdc8148..5ad2403c4 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,9 @@ English | **[中文文档](./README_CN.md)** ## 📍 Migration from 0.x to 1.x - Please ensure to back up your data before upgrading! +- Change `DB_HOST="${APP_IPPR}.5"` to `DB_HOST=mariadb` in the `.env` file. +- Change `REDIS_HOST="${APP_IPPR}.4"` to `REDIS_HOST=redis` in the `.env` file. +- If you have enabled SSL certificates, change `/etc/nginx/conf.d/site/` to `/var/www/docker/nginx/site/` in the `docker/nginx/site/{xxx}.conf` file. - If the upgrade fails, try running `./cmd update` multiple times. - If you encounter "Container xxx not found" during upgrade, run `./cmd up` and then execute `./cmd update`. - If you see a 502 error after upgrading, run `./cmd reup` to restart the services. diff --git a/README_CN.md b/README_CN.md index d3a921804..bbc7d52c5 100644 --- a/README_CN.md +++ b/README_CN.md @@ -12,6 +12,9 @@ ## 📍 0.x 迁移到 1.x - 升级时请务必备份好数据! +- 将 `.env` 文件的 `DB_HOST="${APP_IPPR}.5"` 改为 `DB_HOST=mariadb`。 +- 将 `.env` 文件的 `REDIS_HOST="${APP_IPPR}.4"` 改为 `REDIS_HOST=redis`。 +- 如果你已经开启了ssl证书,将 `docker/nginx/site/{xxx}.conf` 文件内容 `/etc/nginx/conf.d/site/` 改成 `/var/www/docker/nginx/site/`。 - 如果升级失败请尝试执行 `./cmd update` 重试几次。 - 如果升级中出现 `没有找到 xxx 容器` 的提示,请运行 `./cmd up` 后再执行 `./cmd update`。 - 如果升级后出现502错误请运行 `./cmd reup` 重启服务即可。 diff --git a/bin/https b/bin/https index d2fec909e..ce7f7566c 100644 --- a/bin/https +++ b/bin/https @@ -155,8 +155,8 @@ install() { cat >${sitePath}/ssl.conf <