FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
03-19-2024 06:47 AM
Hi,
i have nodejs app with express server. installed correctly on ctrlx Core virtual. showing on side bar, upon click on app it runs on ctrlx like this https://{ip}:3005/project1
But i want to run it without port https://{ip}/project1
how i can do it?
here is code screenshot of code which is running,
Now i change the port to default port 80 . it runs on local system correctly, but when i built its snap and installed on ctrlx core virtual it says:
There is no page available under the path /project1.
03-19-2024 02:51 PM
Hi @jawad ,
First of all, port 80 is the default HTTP port, so you would access at http://{ip}/project1, but this will not work when hosted on the ctrlX CORE.
You'll want to continue hosting on a port and specify it in your Package Assets proxy mapping.
03-20-2024 06:18 AM
Hi @Sgilk Thanks for response.
let me tell you, i want to access token save in session storage of ctrlx core. but when i open my app, session storage get cleared. i removed the port no and then tested after building snap app, the app doesnot runs and says 404 page not found. but session storage exists. so i want the solution for session storage in my app when i run it with port.
Aove mentioned package assets documentation, I bind the port no like below in screenshot
but still it doesnot works and says me .
03-20-2024 09:59 AM - edited 03-20-2024 10:00 AM
Moved to corresponding sub forum SDK.
03-21-2024 01:57 AM
@jawad ,
Could you please clarify this piece a little bit? What are you trying to achieve here?
"i want to access token save in session storage of ctrlx core. but when i open my app, session storage get cleared"
Regarding the port, you will still need to bind it in your express server application. The proxy mapping in the package assets is simply redirecting requests recieved on the specified url to the specified binding. This means you can access the express server without providing a port in the URL.
Also, you should not provide the IP address in the proxyMapping url field. Just use "/project1" in your example.
09-06-2024 09:35 AM
Are there any news? Could this issue been solved?