Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Trying to configure element with custom background

    Matrix (Synapse/Element)
    3
    9
    864
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      derin last edited by

      Hey there,

      Having some issues configuring the Element client based on the Cloudron docs. I wasnt sure where to put the branding options. I've literally tried placing them everywhere. Is there something wrong with my syntax? Would love some input.

      {
      "default_server_config": {
      "m.homeserver": {
      "base_url": "https://matrix.swirlon.app",
      "server_name": "swirlon.app"
      },
      "m.identity_server": {
      "base_url": "https://vector.im"
      },
      "branding": {
      "welcomeBackgroundUrl": "/custom/background.png",
      "authHeaderLogoUrl": "/custom/header.png"
      },
      "disable_custom_urls": false,
      "disable_guests": true,
      "disable_login_language_selector": false,
      "disable_3pid_login": true,
      "brand": "swirlon",
      "integrations_ui_url": "https://scalar.vector.im/",
      "integrations_rest_url": "https://scalar.vector.im/api",
      "integrations_widgets_urls": [
      "https://scalar.vector.im/_matrix/integrations/v1",
      "https://scalar.vector.im/api",
      "https://scalar-staging.vector.im/_matrix/integrations/v1",
      "https://scalar-staging.vector.im/api",
      "https://scalar-staging.riot.im/scalar/api"
      ],
      "bug_report_endpoint_url": "https://riot.im/bugreports/submit",
      "defaultCountryCode": "USA",
      "showLabsSettings": false,
      "features": {
      "feature_pinning": "labs",
      "feature_custom_status": "labs",
      "feature_custom_tags": "labs",
      "feature_state_counters": "labs"
      },
      "default_federate": true,
      "default_theme": "light",
      "roomDirectory": {
      "servers": [
      "matrix.org"
      ]
      },
      "piwik": true,
      "enable_presence_by_hs_url": {
      "https://matrix.org": false,
      "https://matrix-client.matrix.org": false
      },
      "settingDefaults": {
      "breadcrumbs": true
      },
      "jitsi": {
      "preferredDomain": "jitsi.riot.im"
      }
      }

      1 Reply Last reply Reply Quote 0
      • D
        derin last edited by

        This was the last setup i tried but still no dice. Error shows:
        Your Element is misconfigured
        Your Element configuration contains invalid JSON. Please correct the problem and reload the page.

        The message from the parser is: Unexpected end of JSON input

        {
        "default_server_config": {
        "m.homeserver": {
        "base_url": "https://matrix.swirlon.app",
        "server_name": "swirlon.app"
        },
        "m.identity_server": {
        "base_url": "https://vector.im"
        },
        "branding": {
        "welcomeBackgroundUrl": "https://chat.swirlon.app/custom/background.png",
        "authHeaderLogoUrl": "https://chat.swirlon.app/custom/header.png"
        },
        "disable_custom_urls": false,
        "disable_guests": true,
        "disable_login_language_selector": false,
        "disable_3pid_login": true,
        "brand": "swirlon",
        "integrations_ui_url": "https://scalar.vector.im/",
        "integrations_rest_url": "https://scalar.vector.im/api",
        "integrations_widgets_urls": [
        "https://scalar.vector.im/_matrix/integrations/v1",
        "https://scalar.vector.im/api",
        "https://scalar-staging.vector.im/_matrix/integrations/v1",
        "https://scalar-staging.vector.im/api",
        "https://scalar-staging.riot.im/scalar/api"
        ],
        "bug_report_endpoint_url": "https://riot.im/bugreports/submit",
        "defaultCountryCode": "USA",
        "showLabsSettings": false,
        "features": {
        "feature_pinning": "labs",
        "feature_custom_status": "labs",
        "feature_custom_tags": "labs",
        "feature_state_counters": "labs"
        },
        "default_federate": true,
        "default_theme": "light",
        "roomDirectory": {
        "servers": [
        "matrix.org"
        ]
        },
        "piwik": true,
        "enable_presence_by_hs_url": {
        "https://matrix.org": false,
        "https://matrix-client.matrix.org": false
        },
        "settingDefaults": {
        "breadcrumbs": true
        },
        "jitsi": {
        "preferredDomain": "jitsi.riot.im"
        }
        }

        fbartels 1 Reply Last reply Reply Quote 0
        • fbartels
          fbartels App Dev @derin last edited by

          Hi @derin,

          if this is the full file you have posted here then this is indeed broken json. Your code is missing a last closing }.

          D 1 Reply Last reply Reply Quote 0
          • D
            derin @fbartels last edited by

            @fbartels Thank you I realized that later a few minutes after I posted it. The odd thing is that it didnt change anything. It didnt replace the background image on my instance or the logo. I must be misunderstanding something somewhere.

            girish 1 Reply Last reply Reply Quote 0
            • girish
              girish Staff @derin last edited by

              @derin Did you figure this one out?

              D 1 Reply Last reply Reply Quote 0
              • D
                derin @girish last edited by

                @girish No actually. I ended up going down a rabbit whole when I discovered the theming options. Any pointers would be much appreciated.

                girish 1 Reply Last reply Reply Quote 0
                • girish
                  girish Staff @derin last edited by

                  @derin just got around to trying this. It just worked for me. All I did was add this in config.json and I restarted the app (did you restart the app?):

                    "branding": {
                      "welcomeBackgroundUrl": "https://chat.swirlon.app/custom/background.png",
                      "authHeaderLogoUrl": "https://chat.swirlon.app/custom/header.png"
                    },
                  

                  5b2d2636-d0e4-49ee-a681-de9e4c2f0693-image.png

                  1 Reply Last reply Reply Quote 1
                  • girish
                    girish Staff last edited by

                    Here's the full config in case it helps:

                    {
                      "default_server_config": {
                        "m.homeserver": {
                          "base_url": "https://matrix.cloudron.work",
                          "server_name": "cloudron.work"
                        },
                        "m.identity_server": {
                          "base_url": "https://vector.im"
                        }
                      },
                      "disable_custom_urls": true,
                      "disable_guests": true,
                      "disable_login_language_selector": false,
                      "disable_3pid_login": true,
                      "brand": "Riot",
                      "integrations_ui_url": "https://scalar.vector.im/",
                      "integrations_rest_url": "https://scalar.vector.im/api",
                      "integrations_widgets_urls": [
                        "https://scalar.vector.im/_matrix/integrations/v1",
                        "https://scalar.vector.im/api",
                        "https://scalar-staging.vector.im/_matrix/integrations/v1",
                        "https://scalar-staging.vector.im/api",
                        "https://scalar-staging.riot.im/scalar/api"
                      ],
                      "bug_report_endpoint_url": "https://riot.im/bugreports/submit",
                      "defaultCountryCode": "DE",
                      "showLabsSettings": false,
                      "features": {
                        "feature_pinning": "labs",
                        "feature_custom_status": "labs",
                        "feature_custom_tags": "labs",
                        "feature_state_counters": "labs"
                      },
                      "default_federate": true,
                      "default_theme": "light",
                      "roomDirectory": {
                        "servers": [
                          "matrix.org"
                        ]
                      },
                      "branding": {
                        "welcomeBackgroundUrl": "https://chat.swirlon.app/custom/background.png",
                        "authHeaderLogoUrl": "https://chat.swirlon.app/custom/header.png"
                      },
                      "piwik": false,
                      "enable_presence_by_hs_url": {
                        "https://matrix.org": false,
                        "https://matrix-client.matrix.org": false
                      },
                      "settingDefaults": {
                        "breadcrumbs": true
                      },
                      "jitsi": {
                        "preferredDomain": "jitsi.riot.im"
                      }
                    }
                    
                    1 Reply Last reply Reply Quote 0
                    • D
                      derin last edited by

                      @girish said in Trying to configure element with custom background:

                      {
                      "default_server_config": {
                      "m.homeserver": {
                      "base_url": "https://matrix.cloudron.work",
                      "server_name": "cloudron.work"
                      },
                      "m.identity_server": {
                      "base_url": "https://vector.im"
                      }
                      },
                      "disable_custom_urls": true,
                      "disable_guests": true,
                      "disable_login_language_selector": false,
                      "disable_3pid_login": true,
                      "brand": "Riot",
                      "integrations_ui_url": "https://scalar.vector.im/",
                      "integrations_rest_url": "https://scalar.vector.im/api",
                      "integrations_widgets_urls": [
                      "https://scalar.vector.im/_matrix/integrations/v1",
                      "https://scalar.vector.im/api",
                      "https://scalar-staging.vector.im/_matrix/integrations/v1",
                      "https://scalar-staging.vector.im/api",
                      "https://scalar-staging.riot.im/scalar/api"
                      ],
                      "bug_report_endpoint_url": "https://riot.im/bugreports/submit",
                      "defaultCountryCode": "DE",
                      "showLabsSettings": false,
                      "features": {
                      "feature_pinning": "labs",
                      "feature_custom_status": "labs",
                      "feature_custom_tags": "labs",
                      "feature_state_counters": "labs"
                      },
                      "default_federate": true,
                      "default_theme": "light",
                      "roomDirectory": {
                      "servers": [
                      "matrix.org"
                      ]
                      },
                      "branding": {
                      "welcomeBackgroundUrl": "https://chat.swirlon.app/custom/background.png",
                      "authHeaderLogoUrl": "https://chat.swirlon.app/custom/header.png"
                      },
                      "piwik": false,
                      "enable_presence_by_hs_url": {
                      "https://matrix.org": false,
                      "https://matrix-client.matrix.org": false
                      },
                      "settingDefaults": {
                      "breadcrumbs": true
                      },
                      "jitsi": {
                      "preferredDomain": "jitsi.riot.im"
                      }
                      }

                      Oh my gosh thank you so much!!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Powered by NodeBB