Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for single volume (/config) or dual volume (/config, /assets) setups #440

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

vishalkadam47
Copy link
Contributor

@vishalkadam47 vishalkadam47 commented Mar 16, 2025

Support Flexible Asset Path Resolution for Local and Docker Environments

Allow users to organize their Glance files in two ways:

  1. Simple: All files in one /config directory
  2. Advanced: Split between /config (settings) and /assets (static files) - Existing setup

Changes:

  • Improve path detection and validation
  • Keep compatibility with existing setups
  • Add helpful error messages

Single Volume Setup

Docker Compose

services:
  glance:
    image: glanceapp/glance
    volumes:
      - ./config:/app/config # All files in config directory
    ports:
      - 8080:8080

glance.yml

server:
assets-path: config
theme:
custom-css-file: /config/user.css
branding:
favicon-url: /config/favicon.png
logo-url: /config/logo.png

@vaaleyard
Copy link

This is great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants