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

    Add ability to manage rewrites per-app via UI

    Feature Requests
    feature-request url rewrite
    4
    9
    434
    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.
    • mario
      mario App Dev last edited by girish

      Use case:

      I'm migrating from Gitlab to Gitea and I want to set up custom rewrites so old URLs continue to work.

      murgero 1 Reply Last reply Reply Quote 0
      • murgero
        murgero App Dev @mario last edited by

        @mario You can setup a LAMP app that is using the old gitlab url and then htaccess to redirect as needed.

        --
        https://urgero.org
        ~ Professional Nerd. Freelance Programmer. ~
        Matrix: @murgero:urgero.org

        mario 1 Reply Last reply Reply Quote 0
        • mario
          mario App Dev @murgero last edited by

          @murgero I'm using the same URL 😉

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

            Mmm, have to think how we can expose this feature in a user friendly way. AFAIK, rewrite patterns are specific to the reverse proxy. Currently, we use nginx but this is not exposed to the user. So, we have to settle on some generic url rewrite format and expose this via the UI as well. @mario can you put in some example of what kind of rewrites you would like to see? Or is it just the git clone and the project urls? I imagine rewriting path of commits and files is quite complex.

            I also don't know how it might break the app itself (what if the app is using the URLs for something else).

            mario 1 Reply Last reply Reply Quote 0
            • mario
              mario App Dev @girish last edited by

              @girish

              /libburnia/web/-/wikis/home -> /libburnia/web/wiki
              /libburnia/libburn/raw/HEAD/libburn/libburn.h -> /libburnia/libburn/raw/branch/master/libburn/libburn.h

              Obviously, just two examples. The pages on wiki would be parameters, and so would the actual files after /HEAD.

              As for breaking the app if I enter the same URL as it's already using: well, it's my fault then - clearly! 🙂

              But even if we're talking "plain" barebones domain, I just don't want to setup an entire LAMP app to do a redirect from say https://libburnia-project.org to https://dev.lovelyhq.com/libburnia/web/wiki (But that's a whole other topic).

              jdaviescoates 1 Reply Last reply Reply Quote 0
              • jdaviescoates
                jdaviescoates @mario last edited by

                @mario said in Add ability to manage rewrites per-app via UI:

                But even if we're talking "plain" barebones domain, I just don't want to setup an entire LAMP app to do a redirect from say https://libburnia-project.org to https://dev.lovelyhq.com/libburnia/web/wiki (But that's a whole other topic).

                It's off topic, but just to say, you can do basic redircts in the Location tab in the app Configuration view, see https://cloudron.io/documentation/apps/#redirections

                I use Cloudron with Gandi & Hetzner

                mario 1 Reply Last reply Reply Quote 0
                • mario
                  mario App Dev @jdaviescoates last edited by

                  @jdaviescoates not if I don't have anything really on https://libburnia-project.org 😛 I'd have to setup an app to do it. And that's an additional requirement anyway that's not as important as the other ones.

                  jdaviescoates 1 Reply Last reply Reply Quote 1
                  • jdaviescoates
                    jdaviescoates @mario last edited by

                    @mario yeah I was just making double sure you knew that basic redirect stuff is there 🙂

                    I use Cloudron with Gandi & Hetzner

                    mario 1 Reply Last reply Reply Quote 1
                    • mario
                      mario App Dev @jdaviescoates last edited by

                      @jdaviescoates 🙂

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post
                      Powered by NodeBB