50% 折扣 所有计划,时间有限。开始于 $2.48/mo
Zy

Zy

Web 访问 URL:https://<IP>/ HTTP 端口 80 重定向到 HTTPS 443。 默认帐户: 用户名:owner 密码:owner123 重要提示:立即在 Web 界面中更改默认密码。环境配置文件:/opt/zy/.env 要更新环境变量,请编辑 .env 并重新启动服务:systemctl restart zy.service 重要文件和目录 Zy 二进制文件:/opt/zy/zy 环境变量(API 令牌、公共 [...]

版本

1.0.1

操作系统

Ubuntu 服务器 24.04 LTS

分钟。内存

1 GB

IP类型

IPV4,IPV6

网络访问

网址: https://<IP>/

HTTP端口 80 重定向到 HTTPS 443.

默认账户:

  • 用户名: owner
  • 密码: owner123

重要提示:立即在 Web 界面中更改默认密码。

环境配置

文件: /opt/zy/.env

要更新环境变量,请编辑 .env 并重新启动服务:

systemctl restart zy.service

重要文件和目录

  • Zy 二进制: /opt/zy/zy
  • 环境变量(API 令牌、公共 URL): /opt/zy/.env
  • 系统单位: /etc/systemd/system/zy.service
  • Nginx 站点配置: /etc/nginx/sites-available/zy
  • Nginx 站点已启用: /etc/nginx/sites-enabled/zy
  • 自签名 SSL 证书: /etc/nginx/ssl/

系统服务管理

# Restart the Zy service
systemctl restart zy.service

# Check Zy status
systemctl status zy.service

# Restart the Nginx service
systemctl restart nginx.service

# Check Nginx status
systemctl status nginx.service

为域启用 SSL

1. 将您的域名指向服务器IP。

2.编辑Nginx配置并替换两者 server_name <IP>; 与您的域名(<your-domain>) 对于 HTTP(端口 80)和 HTTPS(端口 443)块:

vim /etc/nginx/sites-available/zy

3.安装Certbot:

apt install -y certbot python3-certbot-nginx

4. 运行以下命令生成有效的 Lets Encrypt 证书:

certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com

5. 替换 Nginx 配置中的 SSL 路径:

vim /etc/apache2/sites-available/zy
# Before:
    # ssl_certificate /etc/nginx/ssl/fullchain.pem;
    # ssl_certificate_key /etc/nginx/ssl/privkey.pem;
# After:
    # ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
    # ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;

6. 重新启动 Nginx 以应用更改:

systemctl restart nginx

7. 更新 PUBLIC_BASE_URL in /opt/zy/env:

PUBLIC_BASE_URL=https://yourdomain.com

8. 重新启动 Zy 以应用更改:

systemctl restart zy

9. 打开浏览器并访问: https://yourdomain.com

现在部署 Zy。 每月 2.48 美元起。