Skip to content

Help: No QR-Code with Docker behind Cloudflare #103

Description

@Roever1

Hi there,

i followed the documentation and some other guides and ended up at this compose

 services:
   mollysocket:
    image: ghcr.io/mollyim/mollysocket:1
    container_name: mollysocket
    restart: always
    volumes:
      - ./data:/data
    working_dir: /data
    command: server
    environment:
      - MOLLY_DB="/data/mollysocket.db"
      # Do not add space in the array ["http://a.tld","*"]
      - MOLLY_ALLOWED_ENDPOINTS=["http://molly.mydomain.org"]
      # Replace the UUID with Molly's, in Settings -> Notifications -> UnifiedPush -> Account ID
      - MOLLY_ALLOWED_UUIDS=["XXXXXXX"]
      - MOLLY_WEBSERVER=true 
      #- MOLLY_VAPID_PRIVKEY="paste output of `docker exec mollysocket mollysocket vapid gen` here"
      - MOLLY_VAPID_PRIVKEY="bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" 
      - MOLLY_HOST=0.0.0.0
      - MOLLY_PORT=XXXXX
      - RUST_LOG=info
    ports:
      - 192.168.178.41:XXXXX:XXXXX/tcp

I use cloudflared to tunnel into my server, and I think I set up the tunnel correctly, since I get a blank page when I connect to molly.maydomain.org. when I change setttings in the tunnel I get a "bad gateway". From the troubleshooting paragraph i get it seems to be an issue with the vapidkey, and i am convinced it is. when I change it to something def. wrong, nothing in the web-ui changes. I re-generated it some times, because I thought something was wrong, could that be an issue? when I paste the key into the compose, I recreate the service with
sudo docker compose -f docker-compose.yml up -d --force-recreate
maybe thats a problem?
Im kinda lost, thank you...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions