uSync.Publisher Config
The majority of the uSync publisher config lives in the Database, and can be synced between your servers via the dashboard.
AppId/AppKey​
For your servers to communicate securely they will need to have a shared AppId and AppKey, these values have to be placed in the appsettings.json file on each server.
When you first open up the uSync.Publisher dashboard, uSync will prompt you to create an AppId and AppKey. you can cut and paste the JSON from that dialog box directly into your appsettings.json file.
{
"uSync": {
"Publisher": {
"Settings": {
"IncomingEnabled": true,
"AppId": "****************",
"AppKey": "****************"
}
}
}
}
appsettings.json config File​
While most settings are now stored in the DB, there are a few settings you can control per server via the appsettings.json file:
{
"uSync": {
"Publisher": {
"Settings": {
"IncomingEnabled": true,
"OutgoingEnabled": true,
"AppId": "****************",
"AppKey": "****************",
"Publisher": "Realtime",
"CleanReports": true,
"PageSize": 50,
"MediaPageSize": 5,
"AdditionalFolders": "",
"SystemFolders" : "",
"SystemExclusions" : "",
"FileReplacements" : "",
"IncludeHost" : true,
"ForceHostOption" : false,
"UserAgentString" : "",
"RequestHeaders" : {
"header one": "custom value",
"header two": "custom value two"
},
"AllowDeletingOfOrphanedItemsForAllTypes" : false,
"AllowDeletingOfOrphanedItemsForTypes" : false,
"AllowDeletingOfOrphanedItemsFromRoot" : false,
}
}
}
}
incomingEnabled​
Turns this server on/off for incoming requests. With this setting off the server cannot be published to or pulled from.
outgoingEnabled​
Enables this server sending publish requests. With this setting off, you will not see the publish/pull options in Umbraco.