Skip to content

Commit 7d015ee

Browse files
authored
Merge pull request #137 from Jumoo/pub-config
removing and adding stuff
2 parents bb00002 + f9afaed commit 7d015ee

File tree

1 file changed

+23
-16
lines changed
  • usync/02.complete/03.guides/01.syncPublisher/02.publishConfig

1 file changed

+23
-16
lines changed

usync/02.complete/03.guides/01.syncPublisher/02.publishConfig/01.config.md

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,15 @@ While most settings are now stored in the DB, there are a few settings you can c
4848
"SystemExclusions" : "",
4949
"FileReplacements" : "",
5050
"IncludeHost" : true,
51-
"ForstHostOption" : false,
51+
"ForceHostOption" : false,
5252
"UserAgentString" : "",
5353
"RequestHeaders" : {
5454
"header one": "custom value",
5555
"header two": "custom value two"
5656
},
57+
"AllowDeletingOfOrphanedItemsForAllTypes" : false,
58+
"AllowDeletingOfOrphanedItemsForTypes" : false,
59+
"AllowDeletingOfOrphanedItemsFromRoot" : false,
5760
}
5861
}
5962
}
@@ -93,9 +96,6 @@ How many items are in a 'page' of data sent between servers.
9396
<!--| 5 |-->
9497
How many media items are in a 'page' of data sent between servers, as media is compressed and sent in pages between servers changing this value will change the size of those compressed files.
9598

96-
### EnableRollback
97-
A rollback folder will be created for each sync, ensuring a backup if it all goes wrong.
98-
9999
### AdditionalFolders
100100
<!-- | ~/Views, ~/wwwroot/css, ~/wwwroot/scripts |-->
101101
List of folders to include.
@@ -110,15 +110,6 @@ Things to exclude from system.
110110
### FileReplacements
111111
Things that might be replaced inside a file.
112112

113-
### RenameUsingAssembly
114-
Do we rename any instances of your site name in the viewimports file. This setting is on by default.
115-
116-
### MaxRequestBodySize
117-
Maximum request size. The default is 500mb, if you set it to zero there is no limit.
118-
119-
### RequestTimeout
120-
Timeout for http requests in seconds.
121-
122113
### IncludeHost
123114
<!--| true/false |-->
124115
If the hostname is included as part of the signature when signing requests between sites. Turning this value off may make it possible to replay requests on another server.
@@ -130,9 +121,6 @@ If true uSync will require a hostname as part of the sync.
130121
### UserAgentString
131122
Set the user agent string.
132123

133-
### SeedServerUrl
134-
This setting is the equivalent of clicking the 'sync' button on a site, but as a pull. All server settings will be pulled from the other site.
135-
136124
### RequestHeaders
137125
Add your own custom header key pairs that will get added to every request.
138126

@@ -148,6 +136,15 @@ Add your own custom header key pairs that will get added to every request.
148136
Use of this setting could badly break your site. We **do not** advise turning it on unless you are 100% sure you know what you're doing.
149137
:::
150138

139+
```json
140+
"Publisher": {
141+
"Settings": {
142+
"AllowDeletingOfOrphanedItemsForAllTypes":
143+
["document-type", "media-type"]
144+
}
145+
}
146+
```
147+
151148
Enabling this setting allows you to remove 'missing' datatypes and doctypes. However, this could have a knock-on effect of **removing *all* associated content and media from your site.** We strongly advise you do not enable it.
152149

153150
This setting is set to false by default.
@@ -164,6 +161,7 @@ This setting is set to false by default.
164161
"AllowDeletingOfOrphanedItemsForTypes":
165162
["document-type", "media-type"]
166163
}
164+
}
167165
```
168166
Content and media types always have the 'delete missing' feature available. Enabling this setting turns the 'delete missing' feature on for additional [EntityTypes](https://github.com/umbraco/Umbraco-CMS/blob/contrib/src/Umbraco.Core/Constants-UdiEntityType.cs) for the Umbraco objects. When pushing these extra objects, uSync will delete orphaned items.
169167

@@ -175,6 +173,15 @@ As with a lot of settings that permit automatic deleting, enabling this can badl
175173
Incorrect use of this setting could delete whole sites from your installation. We **do not** advise turning it on unless you are 100% sure you know what you're doing.
176174
:::
177175

176+
```json
177+
"Publisher": {
178+
"Settings": {
179+
"AllowDeletingOfOrphanedItemsFromRoot":
180+
["document-type", "media-type"]
181+
}
182+
}
183+
```
184+
178185
Enabling this setting allows uSync to remove orphaned items from the root of your site. This can lead to the deletion of your **entire site**, and we *highly* reccomend you do not enable it.
179186

180187
This setting is set to false by default.

0 commit comments

Comments
 (0)