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

Custom username/password do not work #113

Open
redjax opened this issue Feb 7, 2025 · 0 comments
Open

Custom username/password do not work #113

redjax opened this issue Feb 7, 2025 · 0 comments

Comments

@redjax
Copy link

redjax commented Feb 7, 2025

Describe the bug
When running this compose stack with a CUSTOM_USER and PASSWORD environment variable fails:

---
volumes:
  obsidian_vaults: {}
  obsidian_config: {}

services:
  obsidian:
    image: 'ghcr.io/sytone/obsidian-remote:latest'
    container_name: obsidian-remote
    restart: unless-stopped
    ports:
      - ${OBSIDIAN_HTTP_PORT:-8080}:8080
      - ${OBSIDIAN_HTTPS_PORT:-8443}:8443
    volumes:
      - ${OBSIDIAN_VAULTS_DIR:-obsidian_vaults}:/vaults
      - ${OBSIDIAN_CONFIG_DIR:-obsidian_config}:/config
    environment:
      PUID: ${PUID:-1000}
      PGID: ${PUID:-1000}
      TZ: ${TZ:-Etc/UTC}
      DOCKER_MODS: linuxserver/mods:universal-git
      CUSTOM_PORT: 8080
      CUSTOM_HTTPS_PORT: 8443
      KEYBOARD: ${OBSIDIAN_KEYBOARD_LAYOUT:-en-us-qwerty}
      CUSTOM_USER: ${OBSIDIAN_HTTP_USER:-obsidian}
      PASSWORD: ${OBSIDIAN_HTTP_PASSWORD:-Obsidian!}
      TITLE: ${OBSIDIAN_HTTP_PAGE_TITLE:-Obsidian.md}
    healthcheck:
      test: curl -f http://localhost:8080/ || exit 1

Commenting/removing the CUSTOM_USER and PASSWORD values skips the VNC login screen and opens Obsidian successfully, but setting any value for the basic auth username/password causes a login window to show, and the following error message:

connecting to sesman ip 127.0.0.1 port 3350
sesman connect ok
sending login info to session manager, please wait...
login failed for display 0

To Reproduce
Add CUSTOM_USER and PASSWORD environment variables to the obsidian service.

Expected behavior
The VNC authentication window should accept the values of CUSTOM_USER and PASSWORD.

Screenshots
With CUSTOM_USER and PASSWORD set:

Image

Without CUSTOM_USER and PASSWORD set:

Image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Vivaldi
  • Version: latest Docker container version, Vivaldi v7.1.3570.42
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

No branches or pull requests

1 participant