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

    GitLab External LDAP

    GitLab
    4
    9
    157
    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.
    • tobiasReichel
      tobiasReichel last edited by

      Hey Everyone,

      so I'm using jump cloud as my LDAP service and now I want to change the LDAP settings for GitLab it works but it gets overwritten every time the container restart

      how can I change that I don't see an obvious way?

      any other ideas than deploying my own container in cloudron?

      BrutalBirdie 1 Reply Last reply Reply Quote 0
      • BrutalBirdie
        BrutalBirdie Staff @tobiasReichel last edited by

        @tobiasReichel
        I have a similar problem currently with the matrix server app, if someone wants to use an external turn server it gets overwritten on every start.

        Currently gitlab behaves the same.

        I was thinking about a solution where the normal startup script is default but if a custom startup script / scripts are provided it should run the custom ones.
        That would be a solution but requires a lot.. all apps to be updated with this in mind.

        Custom starting behavior. Hmmm
        @staff / @appdev what do you guys think? 🤔

        Like my work? Consider donating a beer 🍻 Cheers!

        BrutalBirdie 1 Reply Last reply Reply Quote 1
        • tobiasReichel
          tobiasReichel last edited by

          yes that would be a solution or give us the option to override .env file that gets parsed with the docker

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

            Something like this for each startup script:

            custom_startup_dir="/app/data/app_startup"
            
            if [[ -d $custom_startup_dir]]; then
                echo "==>  Detected custom startup folder, running custom startup scripts"
                for script in ${custom_startup_dir}/*.sh; do
                bash "$script" || exit 1
                done
            else
                echo "==> Running default app Startup"
                default_startup()
            fi
            

            Note to self, this should also contain a check if the folder contains executable files.

            Like my work? Consider donating a beer 🍻 Cheers!

            1 Reply Last reply Reply Quote 0
            • tobiasReichel
              tobiasReichel last edited by

              But there is no easy way to implement it now right? Cause that looks like it belongs in the start.sh

              Or am I wrong?

              BrutalBirdie 1 Reply Last reply Reply Quote 1
              • BrutalBirdie
                BrutalBirdie Staff @tobiasReichel last edited by

                @tobiasReichel you are right. Currently it is part of the read-only start.sh

                https://git.cloudron.io/cloudron/gitlab-app/-/blob/master/start.sh#L44-L57

                Like my work? Consider donating a beer 🍻 Cheers!

                1 Reply Last reply Reply Quote 0
                • nebulon
                  nebulon Staff last edited by

                  I see, so given that if Gitlab is installed without Cloudron user management enabled, it will always disable ldap, but not overwrite the other ldap related configs?

                  tobiasReichel 1 Reply Last reply Reply Quote 1
                  • Topic has been marked as a question  nebulon nebulon 
                  • tobiasReichel
                    tobiasReichel @nebulon last edited by

                    @nebulon

                    yes the options stay as far as I see

                    so any easy way to enable it as far as you know?

                    or do I need to deploy my own container with the template out of the gitlab and change the start.sh script?

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

                      @tobiasReichel Is it an option to use the Jumpcloud LDAP integration using https://docs.cloudron.io/user-management/#external-directory ? This way you don't need to configure GitLab specifically to use Jumpcloud.

                      1 Reply Last reply Reply Quote 0
                      • Moved from Support by  girish girish 
                      • Topic is now a regular thread  girish girish 
                      • First post
                        Last post
                      Powered by NodeBB