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.
01-18-2021 05:25 PM
Hello,
do you can provide an example with web server (e.g. the Go Example of the SDK 1.6) where the web server is already integrated into the reverse proxy? If you just follow the ReadMe.md of the HelloWebserver example and copy the manifest from there (Go Example) theintegration in the reverse proxy does not work...
Thanks!
Best Regards
Maurus Bien
Solved! Go to Solution.
01-25-2021 09:26 AM - edited 01-25-2021 09:29 AM
In the actual provided SDK for ctrlX CORE version 1.6.1 the example and documentation include the information you are looking for. See the path SDK/public/site/samples/hello.webserver.html
If you need more information feel free to contact us again.
01-29-2021 03:53 PM
Yes, I know and you are right, the integration into the reverse proxy works, but in the example the binding is done via localhost:
(Picture of ReadMe.md of HelloWebserver Go Example Project)
In the ReadMe.md of the HelloWebserver Go Example is another recommandation for the binding, the use of unix sockets:
(Picture of ReadMe.md of HelloWebserver Go Example Project)
Changing the manifest.json and snapcraft.yaml alone is not enough in the HelloWebserver Go Example project, also some cahnges inside the Go code itself is needed (main.go) and even a reboot of the ctrlX CORE after installing the snap is needed so that the unix socket binding is working well. I have attached the Go Example with working unix socket integration here in this post.
Is it possible that an WebServer Example with unix socket binding and documention will be provided by Bosch Rexroth?
Thank you!
03-29-2021 08:08 PM
Hello,
Is there any update on this topic?
Any working example code with reverse proxy and unix domain sockets (because it´s recommended)?
03-30-2021 08:38 AM - edited 09-10-2021 02:17 PM
See this tread for a unix socket example. Also the new release RM21.03 (version 1.8) of the SDK for ctrlX AUTOMATION is now available on the collaboration room
EDIT: and on GitHub.
11-30-2021 02:47 PM - edited 12-02-2021 11:43 AM