Glance

A lightweight customizable dashboard for displaying feeds in a clean interface.

Доступ

  • Откройте браузер и перейдите по адресу: https://<SERVER_IP>
  • Ожидается появление предупреждения браузера о SSL (самоподписанный сертификат)
  • Authentication is required (Basic Auth popup)
  • Authentication method: HTTP Basic Auth
  • Credentials are stored securely in: /root/.cloudzy-creds

Важные файлы и каталоги

  • Каталог установки: /opt/glance
  • Docker Compose: /opt/glance/docker-compose.yml
  • Файл окружения: /opt/glance/.env
  • Config directory: /opt/glance/config
  • Home config: /opt/glance/config/home.yml
  • Main config: /opt/glance/config/glance.yml
  • Assets directory: /opt/glance/assets
  • Custom CSS: /opt/glance/assets/user.css
  • Конфигурация Nginx: /etc/nginx/sites-available/glance.conf
  • SSL-сертификаты: /etc/nginx/ssl
  • Auth file: /etc/nginx/auth/.glance-htpasswd
  • Файл учетных данных: /root/.glance-credentials

Управление стеком

Перейдите в каталог установки:

cd /opt/glance

Распространенные команды Docker Compose:

# Check status
docker compose ps

# View logs (follow live)
docker compose logs -f

# Restart all services
docker compose restart

# Stop services
docker compose down

# Start again
docker compose up -d

Disable HTTP Basic Auth in Nginx (Optional)

Edit the Nginx site file: /etc/nginx/sites-available/glance.conf

Remove or comment out these lines:

auth_basic "Restricted";
auth_basic_user_file /etc/nginx/auth/.glance-htpasswd;

Перезагрузите Nginx:

systemctl restart nginx

Включение SSL с доменом

1. Направьте ваш домен на IP-адрес сервера.

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

vim /etc/nginx/sites-available/glance.conf

3. Установите Certbot:

apt install -y certbot python3-certbot-nginx

4. Выполните следующую команду, чтобы сгенерировать действительный сертификат Let’s Encrypt:

certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com

5. Замените пути SSL в конфигурации Nginx:

vim /etc/nginx/sites-available/glance.conf
# 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;

6. Перезапустите Nginx, чтобы применить изменения:

systemctl restart nginx

7. Откройте браузер и перейдите по адресу: https://yourdomain.com

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