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

Only one homeserver option shouldn't show a dropdown #1038

Closed
viasux opened this issue Dec 24, 2022 · 5 comments
Closed

Only one homeserver option shouldn't show a dropdown #1038

viasux opened this issue Dec 24, 2022 · 5 comments

Comments

@viasux
Copy link

viasux commented Dec 24, 2022

Describe the bug

When you choose only one homeserver as an option in cinny's config file, as well as making it so users can't type in the homeserver box, there shouldn't be a dropdown at all.

image

Reproduction

  1. Install cinny
  2. Configure cinny to only have one homeserver and not allow users to set their own
  3. See issue on signup

Expected behavior

I expect there to not be a dropdown on the right for homeservers when there's only one option

Platform and versions

1. OS: Windows 10
2. Browser: Librewolf
3. Cinny Version: 2.2.2
4. Matrix Homeserver: kitty.social

Additional context

No response

@centralscrutinizer21
Copy link

Can i ask how you edited your config.json in order to achieve this? When I put my server it always fall back to matrix.org

@kfiven
Copy link
Collaborator

kfiven commented Feb 11, 2023

You probably missing a comma somewhere @centralscrutinizer21 .json is very strict about that.

@centralscrutinizer21
Copy link

@kfiven can you post an example of a config.json set to show a single server?

@ajbura
Copy link
Member

ajbura commented Feb 11, 2023

@centralscrutinizer21

{
  "defaultHomeserver": 0,
  "homeserverList": [
    "xyz.server"
  ],
  "allowCustomHomeservers": true
}

@ajbura ajbura closed this as completed Feb 11, 2023
@ajbura ajbura reopened this Feb 11, 2023
@Domoel
Copy link

Domoel commented Aug 1, 2023

Could someone explain how to apply the config.json if one is using a docker compose setup? I tried to mount the file directly to the root directory of the docker directory with hte following entry:

    volumes:
      - /volume2/docker/test/config.json:/config.json

However it does not work. Could somebody explain me how to deal with this issue?

Edit: I was able to fix the issue. Instead of mounting it directly with ./cinny/config.json:/config.json one must mount the file into the following directory ./cinny/config.json:/app/config.json. After cookie deletion everything was there.

@ajbura ajbura mentioned this issue Jan 21, 2024
9 tasks
@kfiven kfiven moved this to ⚒️ PWA and URL navigation in Public roadmap Mar 30, 2024
@kfiven kfiven closed this as completed Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ URL navigation and New UI
Development

No branches or pull requests

5 participants