cinnyapp / cinny

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

Docker - config.json is ignored #1314

Closed daedric7 closed 2 months 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 1 year ago

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

Domoel commented 1 year 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 6 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 5 months ago

You can simplely try to shift+F5 on chrome

kfiven commented 2 months ago

Closing as seems to be resolved.