ヘイフォーム

アンケート、クイズ、投票のためのオープンソース対話型フォームビルダー。

HeyFormインスタンスへのアクセス

  • ブラウザを開いて、次のURLにアクセスしてください: http://<Server_IP>
  • 登録ページから最初のアカウントを作成してください。

登録管理(セキュリティ重要)

登録はデフォルトで有効です。

新規ユーザー登録を無効にするには:

  1. 編集する .env ファイル: APP_DISABLE_REGISTRATION=true
  2. 変更を適用: 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>

申請内容