Skip to content

Instantly share code, notes, and snippets.

@jclement
Last active March 22, 2018 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jclement/3368feca85193327a1974a2a6d23881b to your computer and use it in GitHub Desktop.
Save jclement/3368feca85193327a1974a2a6d23881b to your computer and use it in GitHub Desktop.
Testing public facing AFE Nav service
<!-- ================================================= -->
<!-- THIS FILE IS AUTOGENERATED. DO NOT MODIFY THIS FILE -->
<!-- ================================================= -->
<castle>
<?define DISABLE_TLS ?>
<properties>
<!-- Service Configuration -->
<servicePort>0</servicePort>
<serviceHost>localhost</serviceHost>
<webServicePort>9081</webServicePort>
<webServiceHost>localhost</webServiceHost>
</properties>
</castle>
<castle>
<?define OVERRIDE_WEBROOT ?>
<?define PREVENT_WEBROOT_BIND ?>
<properties>
<webRoot>https://76ff6407.ngrok.io/</webRoot>
</properties>
</castle>
@jclement
Copy link
Author

jclement commented Mar 13, 2018

I've made a couple changes to service startup to facilitate testing AFE Nav (from Dev/QA machines) on the big-bad-Internet using a tool like NGrok.

  • Can turn off TLS
  • Doesn't bind to web override by default

First you change your Web Service port to something other than 443 (ie. 9081). You'll also need to use the SSL Tool to uninstall the SSL certificates and bindings.

Add a URLACL binding for that port with an admin command line:

c:\> netsh http add urlacl url=http://localhost:9081/ user=\everyone

Start NGROK pointing at the new port.

ngrok http 9081 -host-header=localhost

Update webroot.config with the newly assigned hostname (https://?????.ngrok.io)

Start the AFE Nav service. Voila!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment