Skip to content

Set Up Glance on a Linux Server – Create a Custom Homepage with Feeds, Weather, and Service Status

Set up Glance on your Linux server: use a One-Click App with HTTPS or install it manually with Docker Compose. Add RSS feeds, weather, and a service monitor widget in glance.yml, then protect your homepage with a login.

27 November 202610 min read2 Views0 helpful

Introduction

Glance is a self-hosted homepage that brings your information sources together on one page: RSS feeds, weather, calendars, new videos from your YouTube channels, posts from subreddits, Hacker News, and the status of your own services. Glance is open source (AGPL-3.0), very lightweight, and configured entirely through a text file called glance.yml. There is no database or browser-based editor.

In this guide, we’ll show you two ways to get started: the easy way with a One-Click App, which makes Glance available over HTTPS in just a few clicks, and a manual installation with Docker Compose following the official guide. After that, you’ll build your own homepage with feeds, weather, and a status display for your services, and protect it with a login.

When It Makes Sense to Run Glance on a VPS

Glance also runs on a computer at home. A VPS is worth considering if:

  • you want your homepage to look the same on all your devices. Set it as your browser’s homepage on your PC, laptop, and smartphone.
  • you want to keep an eye on your services on the server. The monitor widget shows at a glance whether your apps are reachable and how quickly they respond.
  • you want to read news without algorithms or ads. You decide which feeds, channels, and subreddits appear on the page.
  • you don’t want a device at home running around the clock. The VPS is always online, while Glance uses hardly any resources.

Glance is less suitable if you’d rather assemble your homepage in the browser using a mouse. You make every change in glance.yml. Glance also doesn’t manage user accounts with permissions or store any data beyond its configuration.

Info

Glance, Glances, or another homepage? In the app catalog, Glances with an “s” is listed right next to Glance. It’s a system monitoring tool, not a homepage. You’ll also find other homepages, such as Homarr or Homer, which focus mainly on links to your services, as well as Dynacat, a Glance fork with a login and visual editor. This guide covers Glance.

The Easy Way: Glance as a One-Click App

The quickest way to get Glance is through your VPS’s One-Click Apps. The app is accessible directly over HTTPS with a domain and starts with a ready-made example page. You don’t need a reverse proxy, certificate, or firewall rules.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set Up One-Click Apps for instructions.
  • Access via SSH or SFTP to edit the configuration file.

Install

  1. Open your VPS in the ZapX dashboard and switch to the One-Click Apps tab.
  2. Search the app catalog for Glance and click Install app. Check the name: Glances with an “s” is a different app.
  3. Use a custom subdomain or zap.cloud is already selected. Leave the option enabled and enter a name, for example my-start-page. You’ll be able to access Glance over HTTPS using the domain.
  4. There are no other required fields. Glance doesn’t need login credentials or a database during installation.
  5. Click Queue installation. After about a minute, Glance will show as online on the app card.

First Access

Open the app’s Access link. You’ll land directly on the example page, with a calendar, RSS feeds, Twitch channels, Hacker News, YouTube videos, the r/selfhosted subreddit, the weather in London, and stock prices. There is no login at first. You’ll replace the example page with your own in the next step.

Warning

Your homepage is public without a login Anyone who knows the access link can see everything on your homepage, including the list of your services in the monitor widget. So enable Glance’s login before adding your own content. See “Protect Your Homepage with a Login” below for instructions.

Where to Find glance.yml

The One-Click App doesn’t have an editor in the dashboard. Glance reads its settings from the glance.yml file, which is located directly on your VPS:

Code
/data/coolify/services/APP_ID/config/glance.yml

APP_ID is the app’s ID. Find the path over SSH with:

Code
ls /data/coolify/services/*/config/glance.yml

If there are multiple results, docker ps --format '{{.Names}}' | grep glance shows you the right container. Its name is glance- followed by the app’s ID.

Edit the file over SSH, for example with nano, or download it using SFTP, make your changes, and upload it again. Glance detects the change when you save and automatically reloads the configuration; no restart is needed. Then reload the page in your browser. If the file contains an error, Glance continues running with the old configuration. View the error message with:

Code
docker logs --tail 20 glance-APP_ID
Tip

Watch your indentation YAML uses spaces, not tabs. Indent each level by two spaces, as in the examples in this guide. Most errors are caused by incorrect indentation.

Updates and Backups

Check for Glance updates in the app settings (gear icon), under App update. Click Check for updates and install a new version with Apply update. If it says the app is up to date, there isn’t a newer version in the app catalog. In our test, Glance v0.8.8 was running.

In our test, your edited glance.yml was preserved when stopping and starting the app and when selecting Reinstall app under App actions. Still, back it up before every update, since it’s everything that makes up your homepage:

Code
cp /data/coolify/services/APP_ID/config/glance.yml /root/glance-backup-$(date +%F).yml

Also keep a copy somewhere outside the server, for example by downloading it to your computer over SFTP.

Manual Installation

The rest of this guide covers a manual installation of Glance with Docker Compose on your VPS—for example, if you don’t use One-Click Apps on your server or want to integrate Glance into an existing environment with a reverse proxy. It’s based on the official Glance installation guide.

Requirements

  • A Linux VPS with Debian or Ubuntu and SSH access; see First Access via SSH.
  • Docker and Docker Compose; see Install Docker. Check the installation with docker --version and docker compose version.
  • For HTTPS: a domain or subdomain whose A record points to your VPS’s IP address (e.g., start.example.com).

Glance is a single, small program (under 20 MB) with low memory requirements. The official documentation doesn’t specify minimum requirements. In practice, these values are sufficient:

MinimumRecommended
CPU1 vCore1 vCore
RAM128 MB256 MB
StorageA few hundred MB for Docker and the image1 GB

Prepare the Firewall

Glance listens on port 8080 inside the container. You don’t need to open this port if you use a reverse proxy as described below. With ufw, only allow SSH and the ports needed for the reverse proxy:

Code
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
Warning

Docker bypasses ufw Ports published by Docker using ports: can be accessed externally even if ufw blocks them. So, as in the Compose file below, bind Glance only to 127.0.0.1. See Managing the Firewall on Linux for more information about the firewall.

Install with Docker Compose

Create a directory for Glance with subdirectories for its configuration and your own files:

Code
mkdir -p /opt/glance/config /opt/glance/assets
cd /opt/glance

Create the Compose file with nano docker-compose.yml:

Code
services:
  glance:
    image: glanceapp/glance:v0.8.8
    container_name: glance
    restart: unless-stopped
    volumes:
      - ./config:/app/config
      - ./assets:/app/assets
      - /etc/localtime:/etc/localtime:ro
    ports:
      - 127.0.0.1:8080:8080

Here’s what the entries mean:

  • image: the official image with a fixed version. Find new versions in the Glance releases.
  • ./config:/app/config: this is where your glance.yml goes.
  • ./assets:/app/assets: directory for your own icons, images, or CSS, which Glance serves under /assets/.
  • /etc/localtime: Glance uses the server’s time zone, which is important for the clock and calendar.
  • 127.0.0.1:8080:8080: Glance is only accessible from the server itself; external access goes through the reverse proxy.

Create an initial configuration with nano config/glance.yml:

Code
server:
  assets-path: /app/assets

pages:
  - name: Home
    columns:
      - size: small
        widgets:
          - type: calendar
            first-day-of-week: monday
      - size: full
        widgets:
          - type: hacker-news

Start the container:

Code
docker compose up -d

Check whether everything is running with docker compose logs. If you see Starting server on, Glance has read the configuration. If the configuration is invalid at startup, Glance exits immediately with an error message.

First Access

Since Glance listens only on 127.0.0.1, you’ll access the page through an SSH tunnel the first time. Run this on your own computer:

Code
ssh -L 8080:localhost:8080 root@SERVER_IP

Replace SERVER_IP with your VPS’s IP address and open http://localhost:8080 in your browser. If you see the calendar and Hacker News, the installation is working.

Access over HTTPS Through a Reverse Proxy

To access Glance without a tunnel, put a reverse proxy with a valid certificate in front of it. For the basics, see Set Up a Reverse Proxy with nginx and Create an SSL Certificate (Let's Encrypt). Here’s a server block for nginx:

Code
server {
    listen 80;
    server_name start.example.com;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

Then obtain the certificate with certbot --nginx -d start.example.com. Certbot adds HTTPS and HTTP redirection to the block. Also add proxied: true under server: in glance.yml, so Glance reads visitors’ real IP addresses from the X-Forwarded-For header. This is needed for protection against repeated password attempts.

Back Up Your Data

Glance stores nothing beyond your configuration and your own files. Back up the entire directory:

Code
tar -czf glance-backup-$(date +%F).tar.gz /opt/glance

Copy the archive to another system. To restore it, extract the archive and start Glance with docker compose up -d.

Update Glance

Before updating, read the release notes, since new versions occasionally change widgets or options. Then enter the new version in the image field of docker-compose.yml and restart the container:

Code
cd /opt/glance
docker compose pull
docker compose up -d

Your glance.yml will be preserved. Remove old images with docker image prune.

Customize Your Glance Homepage

A homepage consists of pages (pages), each page has up to three columns (columns), and each column contains widgets. A column is either narrow (small) or wide (full); you need one or two wide columns per page. The official configuration documentation describes all the options. We tested the following examples on a One-Click App.

News via RSS

The RSS widget combines multiple feeds in a list, with the newest posts at the top:

Code
- type: rss
  title: News
  limit: 10
  collapse-after: 5
  cache: 1h
  feeds:
    - url: https://www.heise.de/rss/heise-atom.xml
      title: heise online
    - url: https://selfh.st/rss/
      title: selfh.st

limit limits the number of posts, while collapse-after hides the rest behind Show more. cache sets how long Glance keeps the feeds in its cache. Glance doesn’t fetch feeds in the background; it only does so when you open the page. You’ll see new posts after reloading the page once the cache has expired.

Weather for Your Location

The weather widget uses data from Open-Meteo and doesn’t require an API key:

Code
- type: weather
  location: Berlin, Germany
  units: metric
  hour-format: 24h

Enter a city and country under location. units: metric displays degrees Celsius, and hour-format: 24h displays time in 24-hour format. If Glance can’t find the location, the configuration won’t start. Check the exact name with the Open-Meteo location search.

Keep an Eye on Your Services: The Monitor Widget

When the page loads, the monitor widget checks the addresses of your services and shows whether they respond with status 200 and how long it took. With cache: 1m, Glance checks at most once per minute:

Code
- type: monitor
  title: My Services
  cache: 1m
  sites:
    - title: Nextcloud
      url: https://cloud.example.com
    - title: Vaultwarden
      url: https://vault.example.com
      timeout: 5s

Use your apps’ public HTTPS addresses, as shown in the Access link. Glance must be able to reach the address itself. If a service intentionally responds with a different status code, for example 401 because of a login, add it under alt-status-codes. Add calendars, bookmarks (bookmarks), clocks, videos, and many other widgets in the same way.

Protect Your Homepage with a Login

Since version 0.8, Glance includes its own login. You’ll need a secret key and a password hash, both of which Glance generates for you. For the One-Click App, run the commands in the running container:

Code
docker exec glance-APP_ID /app/glance secret:make
docker exec glance-APP_ID /app/glance password:hash YOUR_PASSWORD

For a manual installation, use docker exec glance /app/glance … with the same commands. Add the output at the very top of glance.yml:

Code
auth:
  secret-key: OUTPUT_FROM_SECRET_MAKE
  users:
    admin:
      password-hash: OUTPUT_FROM_PASSWORD_HASH

server:
  proxied: true

For the One-Click App, keep the other lines under server: (host, port, assets-path) and add only proxied: true there. After saving, Glance redirects every request to a login page. After five incorrect attempts within five minutes, Glance temporarily blocks the IP address. Add other people as additional entries under users.

Limitations

  • No browser-based editor: you can only change pages and widgets in glance.yml.
  • No notifications: the monitor widget only displays status when you open the page. If you want a notification when a service goes down, use a monitoring tool such as Uptime Kuma.
  • The Docker container widget is only available with a manual installation: the docker-containers widget needs access to /var/run/docker.sock. The One-Click App doesn’t mount it. For a manual installation, add it to the Compose file as - /var/run/docker.sock:/var/run/docker.sock:ro. This allows Glance to see all the server’s containers, so think carefully before enabling it.
  • External sources: Glance fetches feeds, weather, videos, and prices from third-party services. If a service goes down or limits requests, the relevant widget will be empty.

Conclusion

Glance brings news, weather, calendars, and your services’ status together on a fast, simple homepage that you control entirely through a file. The quickest way to get started is with the One-Click App: it’s available over HTTPS after a minute, and all you need to do is edit glance.yml and enable login. A manual installation with Docker Compose is worthwhile if you want to integrate Glance into an existing server environment or use the Docker container widget.

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

The One-Click App is the quickest option: Glance is available over HTTPS on your domain after about a minute, with no reverse proxy or certificate to configure manually. Then you only need to edit glance.yml over SSH or SFTP. A manual installation with Docker Compose makes sense if you want to integrate Glance into an existing environment or use the Docker container widget, which needs access to the Docker socket.
Edit /data/coolify/services/APP_ID/config/glance.yml on your VPS over SSH or SFTP. Glance automatically reloads the configuration when you save the file, so no restart is needed. If the file contains an error, Glance continues running with the old configuration. Check docker logs glance-APP_ID for the error message.
Yes, since version 0.8. Add a secret key and users with password hashes to the auth section of glance.yml. Generate both using Glance’s secret:make and password:hash commands. Without this section, anyone who knows the address can see your homepage.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.