vault backup: drop browser-profile junk from vault root, keep real note changes, add .gitignore
This commit is contained in:
1 parent
ea4deecf0b
commit
622b7fcac5
2 files changed
+102
-1
No files matched your search
@@ -89,4 +89,27 @@ ssh -N -L 8080:127.0.0.1:8080 ubuntu@服务器IP
|
||||
2. 跑上面「一、安装」那条命令(换个 secretKey 密码)
|
||||
3. 隧道开 8080,浏览器开 `http://localhost:8080` 登录
|
||||
|
||||
域名反代(可选):想用域名访问、不用开隧道时,再配 Cloudflare 解析 + 服务器反代,把域名转到 8080 端口。
|
||||
域名反代(可选):想用域名访问、不用开隧道时,再配 Spaceship 解析 + 服务器反代,把域名转到 8080 端口。注意:域名 trivoo.website 注册和 DNS 都在 Spaceship,不在 Cloudflare,别走错地方。
|
||||
|
||||
## 六、域名反代(已配好,2026-11-06)
|
||||
|
||||
域名:**https://docker.trivoo.website**,登录时网址选 `https://`、端口填 `443`、密钥填 secretKey。
|
||||
|
||||
配法(下次照抄):
|
||||
|
||||
**1. DNS 解析(Spaceship)**:`trivoo.website` → Advanced DNS → 加一条 A 记录,Host `docker`,Value `43.156.118.130`,TTL 30 min。
|
||||
|
||||
**2. Nginx 反代(服务器上)**:新建 `/etc/nginx/sites-available/docker.trivoo.website`,照着 `api.trivoo.website` 的结构写,`proxy_pass` 改成 `http://127.0.0.1:8080`,只留 `listen 80`:
|
||||
|
||||
```bash
|
||||
ln -s /etc/nginx/sites-available/docker.trivoo.website /etc/nginx/sites-enabled/
|
||||
nginx -t && systemctl reload nginx
|
||||
```
|
||||
|
||||
**3. 证书**:
|
||||
|
||||
```bash
|
||||
certbot --nginx -d docker.trivoo.website
|
||||
```
|
||||
|
||||
证书有效期到 2027-02-04,Certbot 已设自动续期。验证通过:浏览器打开域名能看到登录框,容器日志 `/api/containers` 全是 200。
|
||||
Reference in new issue
Block a user