メインコンテンツへスキップ
50% off 全プラン対象、期間限定。月額 $2.48/mo
Zipline

Zipline

Zipline はセルフホスト型のファイル共有・URL 短縮プラットフォームです。ShareX 互換のアップロードサーバーで、モダンなダッシュボード、テーマ、PostgreSQL ストレージを備えています。MIT ライセンス、GitHub スター 3,200 以上。

概要

3.3k

GitHubスター

148

アクティブインストール

ライセンス MIT バージョン Latest OS Ubuntu Server 24.04 LTS Min RAM 1 GB IP IPV4

アクティブインストール数はサンプルデータ(プレビュー)です。正式リリース前に実際のデータに切り替わります。

アクセス

  1. Zipline の URL を開きます: https://<SERVER-IP>
  2. セットアップページにリダイレクトされ、デフォルトのスーパー管理者のユーザー名とパスワードを設定できます。

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

  • インストールパス: /root/zipline
  • Compose ファイル: /root/zipline/docker-compose.yml
  • 環境ファイル: /root/zipline/.env
  • アップロードディレクトリ: /root/zipline/uploads
  • 公開ファイル: /root/zipline/public
  • テーマディレクトリ: /root/zipline/themes
  • PostgreSQL ボリューム: /var/lib/docker/volumes/zipline_pgdata/_data
  • Nginxコンフィグ: /etc/nginx/sites-available/zipline.conf
  • SSLサーティフィケート: /etc/nginx/ssl/zipline.crt
  • SSL 秘密鍵: /etc/nginx/ssl/zipline.key

Docker 管理

ステータスを表示:

cd /root/zipline
docker compose ps

ログを表示:

cd /root/zipline
docker compose logs -f

サービスを再起動:

cd /root/zipline
docker compose restart

サービスを停止:

cd /root/zipline
docker compose down

サービスを開始:

cd /root/zipline
docker compose up -d

NGINX 管理

テスト構成:

nginx -t

NGINX を再起動します:

systemctl restart nginx

NGINX をリロードします:

systemctl reload nginx

NGINX のステータスを確認します:

systemctl status nginx

ドメインでSSLを有効化する

1. ドメインをサーバーIPに向ける。

2. Certbot をインストール:

apt install -y certbot python3-certbot-nginx

3. 次のコマンドを実行して有効な Let's Encrypt 証明書を生成します:

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

4. Nginx 設定内の SSL パスを置き換え:

vim /etc/nginx/sites-available/zipline.conf
# Before:
    # ssl_certificate /etc/nginx/ssl/zipline.crt;
    # ssl_certificate_key /etc/nginx/ssl/zipline.key;
# After:
    # ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
    # ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;

5. Nginx 設定を編集し、両方の server_name _; あなたのドメイン (server_name <yourdomain.com>) をHTTP (ポート80) とHTTPS (ポート443) の両方のブロックに設定:

vim /etc/nginx/sites-available/zipline.conf
# Before:
    server_name: _;
# After:
    server_name: yourdomain.com;

6. 変更を適用するために Nginx を再読み込みします:

systemctl reload nginx

7. ブラウザを開いて次にアクセス: https://yourdomain.com

Zipline の更新

Zipline を更新するには、次のコマンドを実行するだけです:

docker compose pull
docker compose up -d

これにより最新の Zipline イメージが取得され、サーバーが再起動されます。

注意事項

  • Zipline は HTTPS を有効にした Nginx の背後で動作します。
  • アップロードされたファイルの保存先: /root/zipline/uploads.
  • 公開アセットの保存先: /root/zipline/public.
  • カスタムテーマの保存先: /root/zipline/themes.
  • データベース認証情報とアプリケーションシークレットの保存先: /root/zipline/.env.

ファイルホスティングの関連記事

関連アプリ。

Deploy Zipline now. 月額2.48ドルから。