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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Matrix (Synapse/Element)
  3. Trying to configure element with custom background

Trying to configure element with custom background

Scheduled Pinned Locked Moved Solved Matrix (Synapse/Element)
9 Posts 3 Posters 2.3k Views 4 Watching
  • 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 Offline
    D Offline
    derin
    wrote on last edited by
    #1

    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
    0
    • D Offline
      D Offline
      derin
      wrote on last edited by
      #2

      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"
      }
      }

      fbartelsF 1 Reply Last reply
      0
      • D derin

        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"
        }
        }

        fbartelsF Offline
        fbartelsF Offline
        fbartels
        App Dev
        wrote on last edited by
        #3

        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
        0
        • fbartelsF fbartels

          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 Offline
          D Offline
          derin
          wrote on last edited by
          #4

          @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.

          girishG 1 Reply Last reply
          0
          • D derin

            @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.

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @derin Did you figure this one out?

            D 1 Reply Last reply
            0
            • girishG girish

              @derin Did you figure this one out?

              D Offline
              D Offline
              derin
              wrote on last edited by
              #6

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

              girishG 1 Reply Last reply
              0
              • D derin

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

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #7

                @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
                1
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #8

                  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
                  0
                  • D Offline
                    D Offline
                    derin
                    wrote on last edited by
                    #9

                    @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
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search