Кенер

Легка сторінка стану на базі SvelteKit для простого та сучасного моніторингу.

Доступ

  1. Відкрийте браузер і перейдіть за адресою: https://<SERVER_IP>
  2. A browser SSL warning is expected (self-signed certificate)
  3. Click Login
  4. Create your admin account

Важливі файли та каталоги

  • Kener installation directory: /root/kener
  • Файл середовища: /root/kener/.env
  • Файл Docker Compose: /root/kener/docker-compose.yml
  • Обсяг даних Redis: /var/lib/docker/volumes/kener_redis/_data
  • Обсяг даних PostgreSQL: /var/lib/docker/volumes/kener_postgres/_data
  • Конфігурація сайту Nginx: /etc/nginx/sites-available/kener
  • Enabled site: /etc/nginx/sites-enabled/kener
  • SSL-сертифікати: /etc/nginx/ssl/fullchain.pem та /etc/nginx/ssl/privkey.pem

Управління послугами

# 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

Увімкнення SSL для домену

1. Направте свій домен на IP-адресу сервера.

2. Edit /root/kener/.env to set your domain as ORIGIN: ORIGIN=https://yourdomain.com

3. Відтворити послуги:

cd /root/kener/
docker compose up -d

4. Відредагуйте конфігурацію Nginx і замініть обидва server_name <IP>; з вашим доменом (<your-domain>) для блоків HTTP (порт 80) і HTTPS (порт 443):

vim /etc/nginx/sites-available/kener

5. Встановіть Certbot:

apt install -y certbot python3-certbot-nginx

6. Виконайте наступну команду, щоб створити дійсний сертифікат 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. Перезапустіть Nginx, щоб застосувати зміни:

systemctl restart nginx

9. Відкрийте браузер і перейдіть за адресою: https://yourdomain.com

10. After logging in, go to Site Configuration and update the Site URL field to match your domain (https://yourdomain.com).

Примітки

  • Redis is used for queues and caching
  • PostgreSQL stores all application data
  • Public URL is defined via ORIGIN в .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.

Деталі заявки