cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Example IntegrationWebServer to Reverse Proxy

Example IntegrationWebServer to Reverse Proxy

maurusbien
Established Member

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

5 REPLIES 5

CodeShepherd
Community Moderator
Community Moderator

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.

Yes, I know and you are right, the integration into the reverse proxy works, but in the example the binding is done via localhost:

maurusbien_1-1611931364801.png

(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:

maurusbien_2-1611931561451.png

(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!

 

Hello,

Is there any update on this topic?

Any working example code with reverse proxy and unix domain sockets (because it´s recommended)?

CodeShepherd
Community Moderator
Community Moderator

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.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist