Glance

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

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)
  • Authentication is required (Basic Auth popup)
  • Authentication method: HTTP Basic Auth
  • Credentials are stored securely in: /root/.cloudzy-creds

Důležité soubory a adresáře

  • Instalační adresář: /opt/glance
  • Docker Compose: /opt/glance/docker-compose.yml
  • Soubor prostředí: /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
  • Konfigurace Nginx: /etc/nginx/sites-available/glance.conf
  • SSL certifikáty: /etc/nginx/ssl
  • Auth file: /etc/nginx/auth/.glance-htpasswd
  • Soubor s přihlašovacími údaji: /root/.glance-credentials

Manage the Stack

Go to the installation directory:

cd /opt/glance

Common Docker Compose commands:

# 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;

Znovu načíst Nginx:

systemctl restart nginx

Povolení SSL s doménou

1. Nasměrujte svou doménu na IP adresu serveru.

2. 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/glance.conf

3. Nainstalujte Certbot:

apt install -y certbot python3-certbot-nginx

4. Spusťte následující příkaz a vygenerujte platný certifikát Let’s Encrypt:

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

5. Nahraďte cesty SSL v konfiguraci 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. Restartujte Nginx, aby se změny projevily:

systemctl restart nginx

7. Otevřete prohlížeč a přejděte na adresu: https://yourdomain.com

Podrobnosti o aplikaci