-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hello,
Example environment variables are shared in readme file under KepwareSync.Service folder. I tested docker deployment with example variables, it works as expected and the service does PrimaryKepServer -> LocalFile.
environment:
- KEPWARE__PRIMARY__USERNAME=Administrator
- KEPWARE__PRIMARY__PASSWORD=StrongAdminPassword2025!
- KEPWARE__PRIMARY__HOST=https://kepware:57513
- STORAGE__DIRECTORY=/app/config
I'm requesting information how to define environment variables related to secondary. Changing the word "PRIMARY" in the example variables (such as KEPWARE__SECONDARY__USERNAME) seems to take no effect on container.
There is a workaround that includes mapping the appsettings.json to the host system, but I'd like to do the synchronization by using the environmental variables without touching the json file. The readme file has a reference to "AddEnvironmentVariables" function, if this is the way to add more variables, please let me know to modify it.
I'm also wondering how to use other service commands as env vars as well, such as "--kep-sync-mode" and "--kep-sync-direction".
Best,
Tahsin Tosun