Přístup
- Otevřete prohlížeč a navštivte:
https://<SERVER_IP> - Očekává se, že se v prohlížeči zobrazí varování týkající se SSL (certifikát s vlastním podpisem)
- Click Login
- Create your admin account
Důležité soubory a adresáře
- Kener installation directory:
/root/kener - Soubor prostředí:
/root/kener/.env - Soubor Docker Compose:
/root/kener/docker-compose.yml - Objem dat Redis:
/var/lib/docker/volumes/kener_redis/_data - Objem dat PostgreSQL:
/var/lib/docker/volumes/kener_postgres/_data - Konfigurace webu Nginx:
/etc/nginx/sites-available/kener - Enabled site:
/etc/nginx/sites-enabled/kener - SSL certifikáty:
/etc/nginx/ssl/fullchain.pema/etc/nginx/ssl/privkey.pem
Správa služeb
# View logs
docker compose -f /root/kener/docker-compose.yml logs -f
# Restart services
docker compose -f /root/kener/docker-compose.yml restart
# Stop services
docker compose -f /root/kener/docker-compose.yml down
# Start again
docker compose -f /root/kener/docker-compose.yml up -d
Povolení SSL s doménou
1. Nasměrujte svou doménu na IP adresu serveru.
2. Edit /root/kener/.env to set your domain as ORIGIN: ORIGIN=https://yourdomain.com
3. Obnovte služby:
cd /root/kener/
docker compose up -d
4. Upravte konfiguraci Nginx a nahraďte oba server_name <IP>; s vaší doménou (<your-domain>) pro bloky HTTP (port 80) i HTTPS (port 443):
vim /etc/nginx/sites-available/kener
5. Nainstalujte Certbot:
apt install -y certbot python3-certbot-nginx
6. Spusťte následující příkaz k vygenerování platného certifikátu Let’s Encrypt:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
7. Replace SSL paths in Nginx config:
vim /etc/nginx/sites-available/kener
# Before:
# ssl_certificate /etc/nginx/ssl/fullchain.pem;
# ssl_certificate_key /etc/nginx/ssl/privkey.pem;
# After:
# ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
8. Restartujte Nginx, aby se změny projevily:
systemctl restart nginx
9. Otevřete prohlížeč a přejděte na adresu: https://yourdomain.com
10. After logging in, go to Site Configuration and update the Site URL field to match your domain (https://yourdomain.com).
Poznámky
- Redis is used for queues and caching
- PostgreSQL stores all application data
- Public URL is defined via
ORIGINv.env(required for CSRF protection) - Nginx handles HTTPS and reverse proxy
- Once you configure a proper domain name and SSL certificate, update Kener’s Site URL to match your domain. Make sure the domain and SSL are active first—updating the Site URL before that may not work correctly.
