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. Use Cloudron Logins for host protected settings

Use Cloudron Logins for host protected settings

Scheduled Pinned Locked Moved Solved MiroTalk
mirotalk
44 Posts 8 Posters 1.5k Views 8 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.
  • C Offline
    C Offline
    cvachery
    wrote on last edited by
    #20

    I keep having the same error when trying to create a room

    Oops, Room not allowed
    This room is not allowed for this user
    

    My config.js file looks like this:

    // All options at https://github.com/miroslavpejic85/mirotalksfu/blob/main/app/src/config.template.js
    
    module.exports = {
        host: {
            /*
                Host Protection (default: false)
                To enhance host security, enable host protection - user auth and provide valid
                usernames and passwords in the users array.
            */
            protected: true,
            user_auth: false,
            users: [
                /*
                {
                    username: 'username',
                    password: 'password',
                },
                {
                    username: 'username2',
                    password: 'password2',
                },
                ...
                */
            ]
        },
        presenters: {
            /*
                By default, the presenter is identified as the first participant to join the room, distinguished by their username and UUID.
                Additional layers can be added to specify valid presenters and co-presenters by setting designated usernames.
            */
            list: [],
            join_first: true, // Set to true for traditional behavior, false to prioritize presenters
        }
    };
    

    And looking at the app repo here the config file should look quite different to be able to handle OIDC connection

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

      In that case maybe just try to reinstall the app so it gets provisioned with a fresh config.js if the migration during update didn't work out for some reason.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cvachery
        wrote on last edited by
        #22

        The reinstall doesn't change the content of this file.
        And I don't see how it could be looking at the docker file but maybe I'm missing something

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

          To be clear the file you were linking from the package repo is a wrapper for config.js which will read values from /app/data/config.js and merges it with Cloudron specific ones. Maybe this is where the confusion comes from?

          1 Reply Last reply
          0
          • C Offline
            C Offline
            cvachery
            wrote on last edited by
            #24

            Yes I got that it's a wrapper but this wrapper is never used neither in the dockerfile or start.sh so I don't get when this merge is done

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

              That file overwrites the upstream config.js in https://git.cloudron.io/cloudron/mirotalksfu-app/-/blob/main/Dockerfile?ref_type=heads#L13 and then loads the one in /app/data/config.js and then patches up the process internal config object. Only very specific config options are copied over though. For auth it is only those three essentially https://git.cloudron.io/cloudron/mirotalksfu-app/-/blob/main/config.js?ref_type=heads#L20

              But maybe to take a step back, whatever is specified regarding oidc in the /app/data/config.js will get overwritten during runtime. So that is probably not the root cause of the issue you are facing.

              1 Reply Last reply
              0
              • C Offline
                C Offline
                cvachery
                wrote on last edited by
                #26

                You are right I misread the Dockerfile, thanks for pointing this out!

                Maybe it would it be easier to have an example of a config.js file in the documentation.
                I guess I'm not the only one failing to configure it 😕
                Do I need to create an OpenID Connect Provider in my Cloudron user directory?

                1 Reply Last reply
                0
                • jdaviescoatesJ Offline
                  jdaviescoatesJ Offline
                  jdaviescoates
                  wrote on last edited by jdaviescoates
                  #27

                  @cvachery I'm confused by this thread.

                  You shouldn't need to configue anything.

                  Just select the relevant User management settings when installing and Cloudron sets it all up, no? 🤔

                  Screenshot_20240701-160422_Firefox.png

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    cvachery
                    wrote on last edited by cvachery
                    #28

                    I did the same but ticked Allow all users from this Cloudron
                    Thing is @jdaviescoates by default anyone can create/join a room. But I want to restrict room creation to logged in users and anyone can join with the link.
                    And when activating those parameters is when problems arise.

                    jdaviescoatesJ 2 Replies Last reply
                    1
                    • C cvachery

                      I did the same but ticked Allow all users from this Cloudron
                      Thing is @jdaviescoates by default anyone can create/join a room. But I want to restrict room creation to logged in users and anyone can join with the link.
                      And when activating those parameters is when problems arise.

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #29
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • C cvachery

                        I did the same but ticked Allow all users from this Cloudron
                        Thing is @jdaviescoates by default anyone can create/join a room. But I want to restrict room creation to logged in users and anyone can join with the link.
                        And when activating those parameters is when problems arise.

                        jdaviescoatesJ Offline
                        jdaviescoatesJ Offline
                        jdaviescoates
                        wrote on last edited by
                        #30

                        @cvachery said in Use Cloudron Logins for host protected settings:

                        Thing is @jdaviescoates by default anyone can create/join a room. But I want to restrict room creation to logged in users and anyone can join with the link.

                        Ah, right. That ought to be default when choosing Cloudron user management, but I guess it isn't.

                        1 Reply Last reply
                        0
                        • MiroTalkM MiroTalk

                          @avatar1024 said in Use Cloudron Logins for host protected settings:

                          Otherwise, while guest cannot enter the app base domain without a login, they can still create rooms freely by creating a url: mirotalkappprefix.mydomain.com/join/roomname

                          @MiroTalk is that behaviour intended?

                          Not a behaviour intended! I'm considering a refinement where guests are only allowed to join specified rooms that have already been created by authenticated users. This approach might offer better control and security. Will be released in the next version.

                          C Offline
                          C Offline
                          cvachery
                          wrote on last edited by
                          #31

                          Thanks to @MiroTalk in the latest version it works and the config is nearly perfect
                          Only issue is still one identified erlier that anonymous users can create room if they go to the specific URL

                          @MiroTalk said in Use Cloudron Logins for host protected settings:

                          @avatar1024 said in Use Cloudron Logins for host protected settings:

                          Otherwise, while guest cannot enter the app base domain without a login, they can still create rooms freely by creating a url: mirotalkappprefix.mydomain.com/join/roomname

                          @MiroTalk is that behaviour intended?

                          Not a behaviour intended! I'm considering a refinement where guests are only allowed to join specified rooms that have already been created by authenticated users. This approach might offer better control and security. Will be released in the next version.

                          MiroTalkM 1 Reply Last reply
                          1
                          • C cvachery

                            Thanks to @MiroTalk in the latest version it works and the config is nearly perfect
                            Only issue is still one identified erlier that anonymous users can create room if they go to the specific URL

                            @MiroTalk said in Use Cloudron Logins for host protected settings:

                            @avatar1024 said in Use Cloudron Logins for host protected settings:

                            Otherwise, while guest cannot enter the app base domain without a login, they can still create rooms freely by creating a url: mirotalkappprefix.mydomain.com/join/roomname

                            @MiroTalk is that behaviour intended?

                            Not a behaviour intended! I'm considering a refinement where guests are only allowed to join specified rooms that have already been created by authenticated users. This approach might offer better control and security. Will be released in the next version.

                            MiroTalkM Away
                            MiroTalkM Away
                            MiroTalk
                            wrote on last edited by
                            #32

                            @cvachery said in Use Cloudron Logins for host protected settings:

                            Thanks to @MiroTalk in the latest version it works and the config is nearly perfect
                            Only issue is still one identified erlier that anonymous users can create room if they go to the specific

                            Should be fixed in both MiroTalk P2P v.1.3.79 & MiroTalk SFU v.1.5.80. Cheers.

                            N 1 Reply Last reply
                            3
                            • nebulonN Offline
                              nebulonN Offline
                              nebulon
                              Staff
                              wrote on last edited by
                              #33

                              Both packages are updated also now.

                              1 Reply Last reply
                              1
                              • MiroTalkM MiroTalk

                                @cvachery said in Use Cloudron Logins for host protected settings:

                                Thanks to @MiroTalk in the latest version it works and the config is nearly perfect
                                Only issue is still one identified erlier that anonymous users can create room if they go to the specific

                                Should be fixed in both MiroTalk P2P v.1.3.79 & MiroTalk SFU v.1.5.80. Cheers.

                                N Offline
                                N Offline
                                Neiluj
                                wrote on last edited by Neiluj
                                #34

                                @MiroTalk said in Use Cloudron Logins for host protected settings:

                                @cvachery said in Use Cloudron Logins for host protected settings:

                                Thanks to @MiroTalk in the latest version it works and the config is nearly perfect
                                Only issue is still one identified erlier that anonymous users can create room if they go to the specific

                                Should be fixed in both MiroTalk P2P v.1.3.79 & MiroTalk SFU v.1.5.80. Cheers.

                                Yeah I am still having issue with this / cannot figure out the correct settings to prevent anonymous user room creation.

                                Basically, I am trying to limit room creation to registered Cloudron User, but still keep the possibility for anonymous users to join a room once created.

                                At the moment, my MiroTalk SFU app has its cloudron setting access control set to "Only allow the following users and groups".

                                I do have a custom config.js with the following:

                                    host: {
                                        /*
                                            Host Protection (default: false)
                                            To enhance host security, enable host protection - user auth and provide valid
                                            usernames and passwords in the users array.
                                        */
                                        protected: true,
                                        user_auth: false,
                                        users: [
                                            /*
                                            {
                                                username: 'username',
                                                password: 'password',
                                            },
                                            {
                                                username: 'username2',
                                                password: 'password2',
                                            },
                                            ...
                                            */
                                        ]
                                    },
                                

                                Yet room creation is still allowed for anonymous users.

                                I could set user_auth to true and provider "provide valid usernames and passwords in the users array." as mentioned in the config.js comment, but my understanding is that this will void/conflict with the cloudron OIDC integration.

                                Of course, I am likely missing something so I am wondering if anyone got this working properly and if/when so, what are the proper settings for preventing room creation by anonymous users.

                                Many thanks,

                                MiroTalkM 1 Reply Last reply
                                0
                                • N Neiluj

                                  @MiroTalk said in Use Cloudron Logins for host protected settings:

                                  @cvachery said in Use Cloudron Logins for host protected settings:

                                  Thanks to @MiroTalk in the latest version it works and the config is nearly perfect
                                  Only issue is still one identified erlier that anonymous users can create room if they go to the specific

                                  Should be fixed in both MiroTalk P2P v.1.3.79 & MiroTalk SFU v.1.5.80. Cheers.

                                  Yeah I am still having issue with this / cannot figure out the correct settings to prevent anonymous user room creation.

                                  Basically, I am trying to limit room creation to registered Cloudron User, but still keep the possibility for anonymous users to join a room once created.

                                  At the moment, my MiroTalk SFU app has its cloudron setting access control set to "Only allow the following users and groups".

                                  I do have a custom config.js with the following:

                                      host: {
                                          /*
                                              Host Protection (default: false)
                                              To enhance host security, enable host protection - user auth and provide valid
                                              usernames and passwords in the users array.
                                          */
                                          protected: true,
                                          user_auth: false,
                                          users: [
                                              /*
                                              {
                                                  username: 'username',
                                                  password: 'password',
                                              },
                                              {
                                                  username: 'username2',
                                                  password: 'password2',
                                              },
                                              ...
                                              */
                                          ]
                                      },
                                  

                                  Yet room creation is still allowed for anonymous users.

                                  I could set user_auth to true and provider "provide valid usernames and passwords in the users array." as mentioned in the config.js comment, but my understanding is that this will void/conflict with the cloudron OIDC integration.

                                  Of course, I am likely missing something so I am wondering if anyone got this working properly and if/when so, what are the proper settings for preventing room creation by anonymous users.

                                  Many thanks,

                                  MiroTalkM Away
                                  MiroTalkM Away
                                  MiroTalk
                                  wrote on last edited by
                                  #35

                                  @Neiluj If you have OIDC enabled, you can safely remove the entire host: { ... } section from your configuration. Simply rely on OIDC for authentication, and let me know if everything works as expected. Thank you!

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

                                    @Neiluj I just tried this here also with MiroTalk SFU and without changing the app configs manually, just install the app with Cloudron usermanagement enabled and then only authenticated users can create meetings, while everyone can join them with the share link.

                                    mdc773M 1 Reply Last reply
                                    2
                                    • nebulonN nebulon

                                      @Neiluj I just tried this here also with MiroTalk SFU and without changing the app configs manually, just install the app with Cloudron usermanagement enabled and then only authenticated users can create meetings, while everyone can join them with the share link.

                                      mdc773M Offline
                                      mdc773M Offline
                                      mdc773
                                      wrote on last edited by
                                      #37

                                      @nebulon said in Use Cloudron Logins for host protected settings:

                                      @Neiluj I just tried this here also with MiroTalk SFU and without changing the app configs manually, just install the app with Cloudron usermanagement enabled and then only authenticated users can create meetings, while everyone can join them with the share link.

                                      cant login when i follow your direction

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

                                        was the app installed with Cloudron usermanagement? If so do you see an error somewhere?

                                        mdc773M 1 Reply Last reply
                                        0
                                        • nebulonN nebulon

                                          was the app installed with Cloudron usermanagement? If so do you see an error somewhere?

                                          mdc773M Offline
                                          mdc773M Offline
                                          mdc773
                                          wrote on last edited by
                                          #39

                                          @nebulon Yes cloudron user management was selected. Wired now when i vist a room and does not prompt the user auth just lunches the room: /

                                          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