Skip to content

Commit 1884824

Browse files
authored
Merge pull request #62 from PTCInc/dev-1.0
doc: updates to add clarification to all properties configurable via …
2 parents 8074f9b + feb3d9c commit 1884824

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

KepwareSync.Service/README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# KepwareSync.Service (Currently in Beta)
22

3-
[![Build Status](https://github.com/PTCInc/Kepware-ConfigAPI-SDK-dotnet/actions/workflows/dotnet.yml/badge.svg)](https://github.com/PTCInc/Kepware-ConfigAPI-SDK-dotnet/actions)
3+
[![Build Status](https://github.com/PTCInc/Kepware-ConfigAPI-SDK-dotnet/actions/workflows/syncservice-build.yml/badge.svg)](https://github.com/PTCInc/Kepware-ConfigAPI-SDK-dotnet/actions)
44
[![Build Status](https://github.com/PTCInc/Kepware-ConfigAPI-SDK-dotnet/actions/workflows/docker-build-and-push.yml/badge.svg)](https://github.com/PTCInc/Kepware-ConfigAPI-SDK-dotnet/actions)
55

66
## Overview
@@ -149,6 +149,10 @@ The service also supports environment variables for configuration using `AddEnvi
149149
| `KEPWARE__PRIMARY__HOST` | https://localhost:57512 |
150150
| `KEPWARE__DISABLECERTIFICATEVALIDATION` | true |
151151
| `STORAGE__DIRECTORY` | ExportedYaml |
152+
| `KEPWARE__SECONDARY__0__HOST` | https://localhost:57513 |
153+
| `KEPWARE__SECONDARY__0__USERNAME` | SecondaryUser |
154+
| `KEPWARE__SECONDARY__0__PASSWORD` | SecondaryPassword2025! |
155+
| `SYNC__SYNCMODE` | TwoWay
152156

153157
Set these variables in your system or Docker container to override appsettings.json.
154158

@@ -178,8 +182,14 @@ The `appsettings.json` file provides an alternative way to configure `KepwareSyn
178182
]
179183
},
180184
"Storage": {
181-
"Directory": "ExportedYaml"
182-
}
185+
"Directory": "ExportedYaml",
186+
// "PersistDefaultValue": true
187+
},
188+
// "Sync": {
189+
// "SyncMode": "OneWay",
190+
// "SyncDirection": "KepwareToDiskAndSecondary",
191+
// "SyncThrottlingMs": 1000
192+
// }
183193
}
184194
```
185195

KepwareSync.Service/appsettings.Development.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
]
1818
},
1919
"Storage": {
20-
"Directory": "ExportedYaml"
20+
"Directory": "ExportedYaml",
21+
"PersistDefaultValue": true
22+
},
23+
"Sync": {
24+
"SyncMode": "OneWay",
25+
"SyncDirection": "KepwareToDiskAndSecondary",
26+
"SyncThrottlingMs": 1000
2127
}
2228
}

0 commit comments

Comments
 (0)