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. MiroTalk
  3. Can't change UI in config.js

Can't change UI in config.js

Scheduled Pinned Locked Moved Solved MiroTalk
13 Posts 4 Posters 2.2k 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.
  • imc67I Offline
    imc67I Offline
    imc67
    translator
    wrote on last edited by
    #4

    I reinstalled the app with the latest version, OIDC works flawless (thanks !!!!) but I can't get the UI config to work, did you @nebulon ?

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #5

      Adding the following to the /app/data/config.js and then restarting the app works fine here:

      ...
      ui: {
              /*
                  Customize your MiroTalk instance
              */
              brand: {
                  app: {
                      name: 'New name'
                  }
            }
      }
      ...
      
      1 Reply Last reply
      0
      • imc67I Offline
        imc67I Offline
        imc67
        translator
        wrote on last edited by
        #6

        this is what I have on the same "depth level" as 'host' and 'presenters':

        ui: {
                /*
                    Customize your MiroTalk instance
                */
                brand: {
                    app: {
                        name: 'MiroTalk SFU',
                        title: 'MiroTalk SFU',
                        description:
                            '',
                    },
                    site: {
                        title: 'MiroTalk SFU',
                        icon: '../images/logo.svg',
                        appleTouchIcon: '../images/logo.svg',
                    },
                    meta: {
                        description:
                            'MiroTalk SFU',
                        keywords:
                            '',
                    },
                    html: {
                        features: false,
                        teams: true, // Please keep me always visible, thank you!
                        tryEasier: false,
                        poweredBy: false,
                        sponsors: false,
                        advertisers: false,
                        footer: false,
                    },
                },
            },
        
        1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #7

          Looks correct. So after app restart it is not taking into account?

          imc67I 1 Reply Last reply
          0
          • nebulonN nebulon

            Looks correct. So after app restart it is not taking into account?

            imc67I Offline
            imc67I Offline
            imc67
            translator
            wrote on last edited by
            #8

            @nebulon no alas it doesn’t work

            1 Reply Last reply
            0
            • luckowL Offline
              luckowL Offline
              luckow
              translator
              wrote on last edited by
              #9

              +1
              It doesn't work on my instance either. To be precise: I tried mirotalk sfu. There is no default /app/data/config.js in the mirotalk p2p app.
              and: it feels like the config.js is completly ignored. I tried to "protect" my instance via

                      protected: true,
                      user_auth: true,
              

              but it has no effect.
              Log file tells me: No valid user config found at /app/data/config.js ... starting fresh

              Pronouns: he/him | Primary language: German

              1 Reply Last reply
              0
              • nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #10

                This is only added to the SFU flavor, however I just did a fresh installation from the appstore and indeed the ui tweaks are not applied here also.

                1 Reply Last reply
                2
                • nebulonN nebulon has marked this topic as unsolved on
                • nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by nebulon
                  #11

                  After debugging this a bit, so for a start the branding data is stashed in the browser session storage, so it needs to be cleared after restarting the app. Further all properties have to be specified otherwise you will see Javascript errors in the browser console and it will simply fail to apply the branding.

                  Lastly if you see No valid user config found at /app/data/config.js ... starting fresh then it is most likely a syntax error in the config file. Next version will print the parsing error then.

                  1 Reply Last reply
                  1
                  • nebulonN Offline
                    nebulonN Offline
                    nebulon
                    Staff
                    wrote on last edited by
                    #12

                    Just released a new package version for SFU which will promptly exit if the config file cannot be parsed and it is also a bit more forgiving when not all branding objects are set.

                    1 Reply Last reply
                    2
                    • nebulonN nebulon has marked this topic as solved on
                    • imc67I Offline
                      imc67I Offline
                      imc67
                      translator
                      wrote on last edited by
                      #13

                      YES!! It’s working as expected! Wonderful job. Finally the moment to take it in production for two volunteers organizations.

                      1 Reply Last reply
                      1
                      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