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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. App Wishlist
  3. Forgejo

Forgejo

Scheduled Pinned Locked Moved Solved App Wishlist
43 Posts 12 Posters 9.4k Views 11 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.
  • timconsidineT Offline
    timconsidineT Offline
    timconsidine
    App Dev
    wrote on last edited by
    #25

    I packaged Forgejo.
    My git repo : https://git.cloudron.io/timconsidine/cloudron-forgejo

    not added to CCAI catalogue yet

    Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

    L 1 Reply Last reply
    3
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #26

      @timconsidine can you throw in a license? I literally just moved to gitea from gogs ๐Ÿ˜  but maybe I will move to forgejo...

      timconsidineT 1 Reply Last reply
      2
      • girishG girish

        @timconsidine can you throw in a license? I literally just moved to gitea from gogs ๐Ÿ˜  but maybe I will move to forgejo...

        timconsidineT Offline
        timconsidineT Offline
        timconsidine
        App Dev
        wrote on last edited by timconsidine
        #27

        @girish oops yes I will put a licence this morning

        I find gitea UI a touch dated but itโ€™s a git tool so most interactions via terminal or script, so maybe it doesnโ€™t matter.

        But Forgejo seems a touch fresher

        Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

        1 Reply Last reply
        1
        • timconsidineT Offline
          timconsidineT Offline
          timconsidine
          App Dev
          wrote on last edited by
          #28

          LICENSE added, in sync with Forgejo

          Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

          1 Reply Last reply
          3
          • timconsidineT timconsidine

            I packaged Forgejo.
            My git repo : https://git.cloudron.io/timconsidine/cloudron-forgejo

            not added to CCAI catalogue yet

            L Offline
            L Offline
            LoudLemur
            wrote on last edited by
            #29

            @timconsidine

            Well done, Tim! Excellent work.

            I used to think being on Gogs was leading edge. I think I shall have to try moving over to Forgejo like girish.

            1 Reply Last reply
            2
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #30

              I think LICENSE file change was may be not pushed.

              I am thinking we should keep the gitea package and forgejo package mostly in sync. The current forgejo package misses openssh server+exposing the port, creating default admin user, oidc integration, email etc. Maybe all these bits can be copied from the gitea package (which in turn copied from gogs package).

              1 Reply Last reply
              0
              • timconsidineT Offline
                timconsidineT Offline
                timconsidine
                App Dev
                wrote on last edited by
                #31

                Strange, let me look into it.

                Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

                1 Reply Last reply
                0
                • timconsidineT Offline
                  timconsidineT Offline
                  timconsidine
                  App Dev
                  wrote on last edited by
                  #32

                  push of LICENCE to git was skipped - bizarre - force pushed now

                  investigating other comments

                  Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

                  1 Reply Last reply
                  0
                  • timconsidineT Offline
                    timconsidineT Offline
                    timconsidine
                    App Dev
                    wrote on last edited by timconsidine
                    #33

                    @girish my deployed Forgejo is reporting :

                    Powered by Forgejo Version: 14.0.1+gitea-1.22.0

                    I read this as meaning it is already pulling in Gitea features ... or actually it's not pulling the Gitea features you mentioned ?

                    EDIT :. my AI says features available but I need to improve my package

                    Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

                    1 Reply Last reply
                    0
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #34

                      @timconsidine sorry, wasn't clear. What I meant is the package has to be updated to support the various things (which are in the gitea package already):

                      • https://git.cloudron.io/packages/gitea-app/-/blob/master/CloudronManifest.json?ref_type=heads#L22 . This makes "git clone" work
                      • sshd integration - https://git.cloudron.io/packages/gitea-app/-/tree/master/supervisor?ref_type=heads . Required for the "git clone" as well
                      • setup default user - https://git.cloudron.io/packages/gitea-app/-/blob/master/start.sh?ref_type=heads#L18
                      • setup oidc - https://git.cloudron.io/packages/gitea-app/-/blob/master/start.sh?ref_type=heads#L8
                      • mailer setup - https://git.cloudron.io/packages/gitea-app/-/blob/master/start.sh?ref_type=heads#L109

                      Probably missing others... but my note was generally to get the package in sync with gitea one. AFAIK gitea and forgejo deploy very similarly since they only recently forked.

                      I can do this tomorrow as well but wanted to leave a note in case you wanted to do it.

                      timconsidineT 1 Reply Last reply
                      2
                      • girishG girish

                        @timconsidine sorry, wasn't clear. What I meant is the package has to be updated to support the various things (which are in the gitea package already):

                        • https://git.cloudron.io/packages/gitea-app/-/blob/master/CloudronManifest.json?ref_type=heads#L22 . This makes "git clone" work
                        • sshd integration - https://git.cloudron.io/packages/gitea-app/-/tree/master/supervisor?ref_type=heads . Required for the "git clone" as well
                        • setup default user - https://git.cloudron.io/packages/gitea-app/-/blob/master/start.sh?ref_type=heads#L18
                        • setup oidc - https://git.cloudron.io/packages/gitea-app/-/blob/master/start.sh?ref_type=heads#L8
                        • mailer setup - https://git.cloudron.io/packages/gitea-app/-/blob/master/start.sh?ref_type=heads#L109

                        Probably missing others... but my note was generally to get the package in sync with gitea one. AFAIK gitea and forgejo deploy very similarly since they only recently forked.

                        I can do this tomorrow as well but wanted to leave a note in case you wanted to do it.

                        timconsidineT Offline
                        timconsidineT Offline
                        timconsidine
                        App Dev
                        wrote on last edited by
                        #35

                        @girish thank you

                        I was not aware - I thought they were in sync - was probably rushing too much or jumping to conclusions. Will look into it. You will do a better job, I'm sure, but I will see if I can manage it - good experience (hopefully).

                        Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

                        1 Reply Last reply
                        1
                        • timconsidineT Offline
                          timconsidineT Offline
                          timconsidine
                          App Dev
                          wrote on last edited by timconsidine
                          #36

                          @girish I have made changes :

                          SSH :

                          • Manifest : Added tcpPorts.SSH_PORT (default 29418) to CloudronManifest.json . This tells Cloudron to open the firewall.
                          • Start Script : Configured SSH_PORT and SSH_LISTEN_PORT in start.sh to match the manifest.

                          OIDC (SSO) :

                          • Manifest : Added oidc addon to CloudronManifest.json .
                          • Start Script : Added setup_oidc function in start.sh which injects the OIDC configuration directly into the database ( login_source table) and enables OIDC in app.ini .

                          Admin User :

                          • Start Script : Added setup_admin function in start.sh . It checks if the user count is 0, and if so, creates a default admin user with a known password.

                          SMTP (Email) :

                          • Manifest : Added sendmail addon to CloudronManifest.json .
                          • Start Script : Configured [mailer] section in app.ini using Cloudron's environment variables ( CLOUDRON_MAIL_SMTP_SERVER , etc.).

                          Pushed v1.0.1 to git.cloudron.io/timconsidine/cloudron-forgejo

                          Once less job for you @girish, or hopefully less for you to fix ๐Ÿ˜„

                          Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

                          1 Reply Last reply
                          4
                          • girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #37

                            @timconsidine awesome! setup_admin is missing, maybe you forgot to push? In bash, you can do set -eu at the top and this will make missing things error properly. git clone via ssh also doesn't work but I can debug that once you have pushed everything.

                            timconsidineT 1 Reply Last reply
                            1
                            • girishG girish

                              @timconsidine awesome! setup_admin is missing, maybe you forgot to push? In bash, you can do set -eu at the top and this will make missing things error properly. git clone via ssh also doesn't work but I can debug that once you have pushed everything.

                              timconsidineT Offline
                              timconsidineT Offline
                              timconsidine
                              App Dev
                              wrote on last edited by
                              #38

                              @girish hmmm, seems my commit / push is not working fully. It's probably a gremlin here because I push to my private repo and also to git.cloudron.io.

                              Investigating ...

                              Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

                              1 Reply Last reply
                              0
                              • timconsidineT Offline
                                timconsidineT Offline
                                timconsidine
                                App Dev
                                wrote on last edited by timconsidine
                                #39

                                @girish

                                • I have pushed a commit to git.cloudron.io (it was my IDE git setup only pushing to one repo and I was too dozey to notice)
                                • tested git clone ssh://git@git.cloudron.io:6000/xxx/xxx from a repo on my git.cloudron.io to a temp directory : no password prompt, tested clone success by ls of temp directory
                                • did not try ssh git push but I assumed it will work if the git clone ssh://git@git.cloudron.io:6000/xxx/xxx worked

                                Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

                                1 Reply Last reply
                                1
                                • girishG Offline
                                  girishG Offline
                                  girish
                                  Staff
                                  wrote on last edited by
                                  #40

                                  @timconsidine I am taking it forward here https://git.cloudron.io/packages/forgejo-app

                                  timconsidineT 1 Reply Last reply
                                  2
                                  • girishG girish

                                    @timconsidine I am taking it forward here https://git.cloudron.io/packages/forgejo-app

                                    timconsidineT Offline
                                    timconsidineT Offline
                                    timconsidine
                                    App Dev
                                    wrote on last edited by
                                    #41

                                    @girish great ! hope my package was helpful start

                                    Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

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

                                      Locking this thread. The package is out and the forum category is at https://forum.cloudron.io/category/216/forgejo

                                      1 Reply Last reply
                                      2
                                      • nebulonN nebulon locked this topic on
                                      • nebulonN nebulon marked this topic as a question on
                                      • nebulonN nebulon has marked this topic as solved on
                                      • L Offline
                                        L Offline
                                        LoudLemur
                                        wrote on last edited by
                                        #43

                                        Well done timconsidine! Great stuff nebulon!

                                        1 Reply Last reply
                                        0

                                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                        With your input, this post could be even better ๐Ÿ’—

                                        Register Login
                                        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