IT-Tools

Collection of handy online tools for developers, with great UX.

Accessing IT-Tools

  • ブラウザを開いて、次のURLにアクセスしてください: https://<SERVER_IP>
  • ブラウザからSSL警告が表示される可能性があります(自己署名証明書)
  • Authentication is required (Basic Auth popup)
  • Authentication method: HTTP Basic Auth
  • Credentials are stored securely in: /root/.cloudzy-creds

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

  • インストールディレクトリ: /root/it-tools
  • Docker Compose ファイル: /root/it-tools/docker-compose.yml
  • Stored credentials: /root/.cloudzy-creds
  • Nginx virtual host: /etc/nginx/sites-available/it-tools.conf
  • Basic Auth file: /etc/nginx/auth/it-tools.htpasswd
  • TLS certificates: /etc/nginx/ssl

セキュリティに関する注意事項

  • IT-Tools is not exposed directly to the network.
  • Only Nginx listens on public ports.
  • Access is protected via Basic Auth.
  • TLS uses a self-signed certificate.
  • Credentials are stored with restrictive permissions.

ドメインでのSSLの有効化

1. ドメインをサーバーのIPアドレスに設定してください。

2. Nginx設定を編集し、両方を置換する server_name <IP>; あなたのドメインで (<your-domain>HTTP(ポート80)およびHTTPS(ポート443)ブロックの両方に対して:

vim /etc/nginx/sites-available/it-tools.conf

3. Certbot のインストール:

apt install -y certbot python3-certbot-nginx

4. 有効な Let’s Encrypt 証明書を生成するには、次のコマンドを実行します:

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

5. Nginx設定ファイル内のSSLパスを置換する:

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

申請内容