Zy

Cloudzy インスタンス、リージョン、および製品を管理するためのWebインターフェース。

Webアクセス

URL: https://<IP>/

HTTPポート 80 HTTPSにリダイレクトします 443.

デフォルトアカウント:

  • ユーザー名: owner
  • パスワード: owner123

重要:ウェブインターフェースでデフォルトのパスワードを直ちに変更してください。

環境設定

ファイル: /opt/zy/.env

環境変数を更新するには、編集してください .env サービスを再起動します:

systemctl restart zy.service

重要なファイルとディレクトリ

  • Zyバイナリ: /opt/zy/zy
  • 環境変数(APIトークン、公開URL): /opt/zy/.env
  • Systemd ユニット: /etc/systemd/system/zy.service
  • Nginx サイト設定: /etc/nginx/sites-available/zy
  • Nginxサイト有効化: /etc/nginx/sites-enabled/zy
  • 自己署名SSL証明書: /etc/nginx/ssl/

Systemd サービス管理

# 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. ブラウザを開き、次のURLにアクセスしてください: https://yourdomain.com

現在ご利用いただけません。

申請内容