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. Feature Requests
  3. Add ability to manage rewrites per-app via UI

Add ability to manage rewrites per-app via UI

Scheduled Pinned Locked Moved Feature Requests
feature-requesturlrewrite
9 Posts 4 Posters 1.3k Views 5 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.
  • marioM Offline
    marioM Offline
    mario
    App Dev
    wrote on last edited by girish
    #1

    Use case:

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

    murgeroM 1 Reply Last reply
    0
    • marioM mario

      Use case:

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

      murgeroM Offline
      murgeroM Offline
      murgero
      App Dev
      wrote on last edited by
      #2

      @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. ~

      marioM 1 Reply Last reply
      0
      • murgeroM murgero

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

        marioM Offline
        marioM Offline
        mario
        App Dev
        wrote on last edited by
        #3

        @murgero I'm using the same URL 😉

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

          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).

          marioM 1 Reply Last reply
          0
          • girishG girish

            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).

            marioM Offline
            marioM Offline
            mario
            App Dev
            wrote on last edited by
            #5

            @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).

            jdaviescoatesJ 1 Reply Last reply
            0
            • marioM mario

              @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).

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

              @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

              marioM 1 Reply Last reply
              0
              • jdaviescoatesJ jdaviescoates

                @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

                marioM Offline
                marioM Offline
                mario
                App Dev
                wrote on last edited by
                #7

                @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.

                jdaviescoatesJ 1 Reply Last reply
                1
                • marioM mario

                  @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.

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

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

                  I use Cloudron with Gandi & Hetzner

                  marioM 1 Reply Last reply
                  1
                  • jdaviescoatesJ jdaviescoates

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

                    marioM Offline
                    marioM Offline
                    mario
                    App Dev
                    wrote on last edited by
                    #9

                    @jdaviescoates 🙂

                    1 Reply Last reply
                    1
                    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