Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to edit the app url rewrite rules #710

Open
dams666 opened this issue Feb 6, 2023 · 1 comment
Open

how to edit the app url rewrite rules #710

dams666 opened this issue Feb 6, 2023 · 1 comment

Comments

@dams666
Copy link

dams666 commented Feb 6, 2023

My url looks like:
DOMAIN_NAME/convertigo/projects/poc_energisme/DisplayObjects/mobile/APP_PAGE

I'd like to edit the rewrite rules to hide everything before APP_PAGE, ie :
DOMAIN_NAME/APP_PAGE

Thx

@Dherlou
Copy link

Dherlou commented Feb 27, 2023

It would be very nice if this worked somehow.
I also tried defining some url rewrites in my frontend proxy to hide the long path in the container behind a beautiful short path, but the app (probably internally) redirected to the full path and complained about the missing env.json which it expected under the root path.

My test snipped in nginx was:

 location /app/ {
    proxy_pass http://<convertigo container name>:28080/convertigo/projects/<project name>/DisplayObjects/mobile/;
    proxy_redirect http://<convertigo container name>:28080/convertigo/projects/<project name>/DisplayObjects/mobile https://<domain>/app;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants