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>