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
  • Brite
  • 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. Postiz
  3. Open registration

Open registration

Scheduled Pinned Locked Moved Solved Postiz
15 Posts 6 Posters 1.6k Views 6 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.
  • nichu42N Offline
    nichu42N Offline
    nichu42
    wrote on last edited by
    #1

    I have

    export DISABLE_REGISTRATION=false
    

    Shouldn't that allow new registrations?

    Matrix: @nichu42:blueplanet.social

    1 Reply Last reply
    0
    • nichu42N Offline
      nichu42N Offline
      nichu42
      wrote on last edited by
      #2

      I tried setting this to true, but that didn't work either.
      I've also invited some people via UI, but they cannot register or login via "lost password".

      Matrix: @nichu42:blueplanet.social

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

        Have you restarted the app after changing the env variable?

        nichu42N 1 Reply Last reply
        0
        • nebulonN nebulon

          Have you restarted the app after changing the env variable?

          nichu42N Offline
          nichu42N Offline
          nichu42
          wrote on last edited by
          #4

          @nebulon yes

          Matrix: @nichu42:blueplanet.social

          1 Reply Last reply
          0
          • nichu42N Offline
            nichu42N Offline
            nichu42
            wrote on last edited by
            #5

            Has anyone here managed to register more than one user?

            Matrix: @nichu42:blueplanet.social

            robiR 1 Reply Last reply
            0
            • nichu42N nichu42

              Has anyone here managed to register more than one user?

              robiR Offline
              robiR Offline
              robi
              wrote on last edited by
              #6

              @nichu42 by invitation or self registering?

              Conscious tech

              nichu42N 1 Reply Last reply
              0
              • robiR robi

                @nichu42 by invitation or self registering?

                nichu42N Offline
                nichu42N Offline
                nichu42
                wrote on last edited by
                #7

                @robi Whatever. I could create 1 user (me), but failed to add more.

                Matrix: @nichu42:blueplanet.social

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

                  So after looking at the postiz code itself, it turns out they only check for existance of that environment variable. So if export DISABLE_REGISTRATION=whatevervalue is in the .sh config file, registration is disabled.

                  To enable it, remove that line or comment it out (prepending a # on that line). Then restart the app.

                  B 1 Reply Last reply
                  6
                  • nichu42N Offline
                    nichu42N Offline
                    nichu42
                    wrote on last edited by
                    #9

                    That worked! Thank you so much.

                    Matrix: @nichu42:blueplanet.social

                    1 Reply Last reply
                    1
                    • nebulonN nebulon marked this topic as a question on
                    • nebulonN nebulon has marked this topic as solved on
                    • perelinP Offline
                      perelinP Offline
                      perelin
                      wrote on last edited by
                      #10

                      Thx @nebulon ! This could be part of the First Time Usage hints or docs at https://docs.cloudron.io/apps/postiz/ - just not a very obvious behaviour by Postiz

                      1 Reply Last reply
                      3
                      • nebulonN nebulon

                        So after looking at the postiz code itself, it turns out they only check for existance of that environment variable. So if export DISABLE_REGISTRATION=whatevervalue is in the .sh config file, registration is disabled.

                        To enable it, remove that line or comment it out (prepending a # on that line). Then restart the app.

                        B Offline
                        B Offline
                        badmonky
                        wrote last edited by
                        #11

                        @nebulon How does one edit that file? I assume you speak about the start.sh?

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

                          @badmonky the app has a env file in its data directory. You should see that in the filemanager. There you should find that variable. See also https://docs.cloudron.io/packages/postiz/#customization

                          1 Reply Last reply
                          0
                          • B Offline
                            B Offline
                            badmonky
                            wrote last edited by
                            #13

                            I am familiar with the env file. I was just confused about the mention of the .sh file. Which i don't think is intended to be edited by us?

                            Thanks for the clarification.

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

                              The env file used to be called env.sh but got renamed since then to not use .sh extension to match the other apps.

                              jamesJ 1 Reply Last reply
                              0
                              • nebulonN nebulon

                                The env file used to be called env.sh but got renamed since then to not use .sh extension to match the other apps.

                                jamesJ Offline
                                jamesJ Offline
                                james
                                Staff
                                wrote last edited by
                                #15

                                @nebulon said in Open registration:

                                The env file used to be called env.sh but got renamed since then to not use .sh extension to match the other apps.

                                Adding to that, this also means export is no longer needed in the /app/data/env file.
                                So you can just do:

                                DISABLE_REGISTRATION=false
                                
                                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