Je HeyForm-instantie openen
- Open je browser en ga naar:
http://<Server_IP> - Maak je eerste account aan via de registratiepagina.
Registratiebeheer (belangrijk voor de beveiliging)
Registratie is standaard ingeschakeld.
Nieuwe gebruikersregistraties uitschakelen:
- Edit the
.envfile:APP_DISABLE_REGISTRATION=true - Apply changes:
docker compose -f /root/heyform/docker-compose.yml up -d
Dit voorkomt dat onbevoegde gebruikers accounts aanmaken.
Belangrijke bestanden en mappen
- Application directory:
/root/heyform - Docker-omgevingsbestand:
/root/heyform/.env - Docker Compose-bestand:
/root/heyform/docker-compose.yml - Geüploade formulierafbeeldingen:
/root/heyform/assets/ - MongoDB-datavolume:
mongodb_datastored under/var/lib/docker/volumes/ - KeyDB-datavolume:
keydbstored under/var/lib/docker/volumes/ - Nginx reverse proxy-configuratie:
/etc/nginx/sites-available/heyform.conf
Domein- en SSL-configuratie
Wijs je domein toe aan het server-IP.
Nginx-configuratie bewerken:
vim /etc/nginx/sites-available/heyform.conf
Replace server_name <IP>; with server_name <your-domain>;
Install Certbot:
apt install -y certbot python3-certbot-nginx
Certbot uitvoeren voor een SSL-certificaat:
certbot --nginx --non-interactive --agree-tos --email <your-email> -d <your-domain>
Nginx testen en herladen:
sudo nginx -t
sudo systemctl reload nginx
Open in browser: https://<your-domain>