Add ability to manage rewrites per-app via UI
-
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).
-
/libburnia/web/-/wikis/home -> /libburnia/web/wiki
/libburnia/libburn/raw/HEAD/libburn/libburn.h -> /libburnia/libburn/raw/branch/master/libburn/libburn.hObviously, 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).
-
@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
-
@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.
-
@mario yeah I was just making double sure you knew that basic redirect stuff is there
-
Post 9 of 9