HeyForm インスタンスへのアクセス
- ブラウザを開いて次にアクセス:
http://<Server_IP> - 登録ページを使用して最初のアカウントを作成します。
登録の管理 (セキュリティ重要)
登録はデフォルトで有効になっています。
新しいユーザーのサインアップを無効にするには:
- を編集します
.envファイル:APP_DISABLE_REGISTRATION=true - 変更を適用します。
docker compose -f /root/heyform/docker-compose.yml up -d
これにより、権限のないユーザーがアカウントを作成するのを防ぎます。
重要なファイルとディレクトリ
- アプリケーションディレクトリ:
/root/heyform - Docker環境ファイル:
/root/heyform/.env - Docker Composeファイル:
/root/heyform/docker-compose.yml - アップロードされたフォーム画像:
/root/heyform/assets/ - MongoDBのデータ量:
mongodb_data以下に保存されています/var/lib/docker/volumes/ - KeyDBのデータ量:
keydb以下に保存されています/var/lib/docker/volumes/ - Nginx リバースプロキシ設定:
/etc/nginx/sites-available/heyform.conf
ドメインとSSLのセットアップ
ドメインがサーバー IP を指すようにします。
Nginx 構成を編集します。
vim /etc/nginx/sites-available/heyform.conf
交換する server_name <IP>; と server_name <your-domain>;
Certbot をインストールします。
apt install -y certbot python3-certbot-nginx
Certbot を実行して SSL 証明書を発行します。
certbot --nginx --non-interactive --agree-tos --email <your-email> -d <your-domain>
Nginx をテストしてリロードします。
sudo nginx -t
sudo systemctl reload nginx
ブラウザで開く: https://<your-domain>