Skip to content

Commit 1b0c4d6

Browse files
authored
Merge pull request #6610 from mattou07/patch-24
Update azure-web-apps.md umbraco load balancing settings json snippets
2 parents 84abb8c + 7533b49 commit 1b0c4d6

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

14/umbraco-cms/fundamentals/setup/server-setup/load-balancing/azure-web-apps.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ The single instance Backoffice Administrative Web App should be set to use [Sync
2323

2424
The multi-instance Scalable Public Web App should be set to use [TempFileSystemDirectoryFactory](file-system-replication.md#examine-directory-factory-options).
2525

26+
```json
27+
{
28+
"Umbraco": {
29+
"CMS": {
30+
"Examine": {
31+
"LuceneDirectoryFactory" : "TempFileSystemDirectoryFactory"
32+
}
33+
}
34+
}
35+
}
36+
```
2637
## Umbraco TEMP files
2738

2839
When an instance of Umbraco starts up it generates some 'temporary' files on disk. In a normal IIS environment, these would be created within the folders of the Web Application. In an Azure Web App, we want these to be created in the local storage of the actual server that Azure happens to be used for the Web App. So we set this configuration setting to 'true' and the temporary files will be located in the environment temporary folder. This is required for both the performance of the website as well as to prevent file locks from occurring due to the nature of Azure Web Apps shared files system.
@@ -63,7 +74,27 @@ By default **Umbraco v9.4 & 9.5** uses a system-wide semaphore locking mechanism
6374

6475
Apply this setting to both the **SCHEDULINGPUBLISHER** Administrative server and the **SUBSCRIBER** scalable public-facing servers.
6576

66-
## Steps to set-up an environment
77+
You can also copy the following JSON directly into your Azure Web App configuration via the Advanced Edit feature.
78+
79+
```json
80+
{
81+
"name": "UMBRACO__CMS__Global__MainDomLock",
82+
"value": "FileSystemMainDomLock",
83+
"slotSetting": false
84+
},
85+
{
86+
"name": "UMBRACO__CMS__Hosting__LocalTempStorageLocation",
87+
"value": "EnvironmentTemp",
88+
"slotSetting": false
89+
},
90+
{
91+
"name": "UMBRACO__CMS__Examine__LuceneDirectoryFactory",
92+
"value": "TempFileSystemDirectoryFactory",
93+
"slotSetting": false
94+
}
95+
```
96+
97+
## Steps to set up an environment
6798

6899
1. Create an Azure SQL database
69100
2. Install Umbraco on your backoffice administrative environment and ensure to use your Azure SQL Database

0 commit comments

Comments
 (0)