cinny icon indicating copy to clipboard operation
cinny copied to clipboard

Docker - config.json is ignored

Open daedric7 opened this issue 1 year ago • 6 comments

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

daedric7 avatar Jun 26 '23 00:06 daedric7

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

kfiven avatar Jun 26 '23 02:06 kfiven

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.

daedric7 avatar Jun 26 '23 08:06 daedric7

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

sbug0 avatar Jul 20 '23 22:07 sbug0

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

Domoel avatar Aug 01 '23 21:08 Domoel

Reproduced here on Archlinux.

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

merrkry avatar May 02 '24 07:05 merrkry

You can simplely try to shift+F5 on chrome

Curious-r avatar Jun 17 '24 20:06 Curious-r

Closing as seems to be resolved.

kfiven avatar Sep 14 '24 04:09 kfiven