Kener

Lightweight SvelteKit-based status page for simple, modern monitoring.

Truy cập

  1. Mở trình duyệt của bạn và truy cập: https://<SERVER_IP>
  2. Cảnh báo SSL của trình duyệt (chứng chỉ tự ký) là điều bình thường.
  3. Click Login
  4. Create your admin account

Các tập tin và thư mục quan trọng

  • Kener installation directory: /root/kener
  • Tệp môi trường: /root/kener/.env
  • Tệp Docker Compose: /root/kener/docker-compose.yml
  • Dung lượng dữ liệu Redis: /var/lib/docker/volumes/kener_redis/_data
  • Dung lượng dữ liệu PostgreSQL: /var/lib/docker/volumes/kener_postgres/_data
  • Cấu hình trang web Nginx: /etc/nginx/sites-available/kener
  • Enabled site: /etc/nginx/sites-enabled/kener
  • Chứng chỉ SSL: /etc/nginx/ssl/fullchain.pem/etc/nginx/ssl/privkey.pem

Quản lý dịch vụ

# 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

Kích hoạt SSL với tên miền

1. Trỏ tên miền của bạn đến địa chỉ IP của máy chủ.

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

3. Tái tạo các dịch vụ:

cd /root/kener/
docker compose up -d

4. Chỉnh sửa cấu hình Nginx và thay thế cả hai server_name <IP>; với tên miền của bạn (<your-domain>) cho cả khối HTTP (cổng 80) và HTTPS (cổng 443):

vim /etc/nginx/sites-available/kener

5. Cài đặt Certbot:

apt install -y certbot python3-certbot-nginx

6. Chạy lệnh sau để tạo chứng chỉ Let's Encrypt hợp lệ:

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. Khởi động lại Nginx để áp dụng các thay đổi:

systemctl restart nginx

9. Mở trình duyệt của bạn và truy cập: https://yourdomain.com

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

Ghi chú

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

Thông tin ứng dụng