cinnyapp / cinny

Yet another matrix client
https://cinny.in
GNU Affero General Public License v3.0
1.79k stars 233 forks source link

Docker - config.json is ignored #1314

Open daedric7 opened 1 year ago

daedric7 commented 1 year ago

Describe the bug

I'm using Cinny with docker (via docker compose).

config.json is mounted inside the container in /app/config.json.

Yet, aparently it's being ignored, the defaults always show up.

Reproduction

docker-compose.yaml:

version: '3.3'
services:
    cinny:
        image: 'ghcr.io/cinnyapp/cinny:latest'
        restart: always
        volumes:
            - ./config.json:/app/config.json

config.json:

{
  "defaultHomeserver": 0,
  "homeserverList": [
    "myserver.com"
  ],
  "allowCustomHomeservers": false
}

Expected behavior

Only one server available on the server selection ,without option to use custom server.

Platform and versions

Oracle Free Arm, official docker.

Additional context

No response

kfiven commented 1 year ago

Have you seen these? I haven't tried what you are doing but some folks were able to achieve that sucessfully.

daedric7 commented 1 year ago

Weirdly, i arrived on job today, opened the same webpage, and config.json was loaded correctly.

I'll investigate further at home, see if it's a cookie or something still cached.

sbug0 commented 12 months ago

I have the same issue, but I'm not using docker but rather just unpacking the tarball in the weboot

Domoel commented 11 months ago

thank you sir! You helped me to figure out how the config.json is working and to which path one has to mount it. :-)

merrkry commented 2 months ago

Reproduced here on Archlinux.

It's strange that firefox have the site with default settings but chromium works as expected.

Curious-r commented 1 month ago

You can simplely try to shift+F5 on chrome