Install Courier
First off, when you install Courier in your Umbraco, make sure you install the package in each environment. Don't just add the configs and dlls to your source and deploy it. It requires database changes that are only deployed through the package installer.Configure Courier
I'd suggest giving the documentation a quick run-through. It's rather thorough.The most important is configuring your repositories (i.e. the environments you want to be able to send data to).
<repository alias="DEV" name="Development" type="CourierWebserviceRepositoryProvider" visible="true">
<url>https://xxx-dev.azurewebsites.net</url>
<user>0</user>
</repository>
<repository alias="ACC" name="Acceptance" type="CourierWebserviceRepositoryProvider" visible="true">
<url>https://xxx-acc.azurewebsites.net</url>
<user>0</user>
</repository>
<repository alias="PRD" name="Production" type="CourierWebserviceRepositoryProvider" visible="true">
<url>https://xxx-prd.azurewebsites.net</url>
<user>0</user>
</repository>
Https not working
Out of the box, post-install, this should just work.If you're unlucky - like I always am - when trying to use Courier to transfer a few items, you may get
Cannot connect to the destination
"https://xxxx//umbraco/plugins/courier/webservices/repository.asmx"
Take note of the https. There may be other reasons why it's not working for you, but if it works over http and not over https, the solution is simple.
According to Umbraco Support, https is not supported by Courier, but I found that a bit hard to believe. Comparing with other projects - where it WAS working over https - I found the culprit to be the SecurityProtocol.
The only thing you need to do to get this working, is change the default Securityprotocl to TLS1.2 (or higher, if you have this option and are reading this a few years in the future).
Find a startup-class in your project (ContainerInitializer or WebApiConfig or whatever, you'll find something) and add the following line:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
No comments:
Post a Comment