I have Opserver running fine in Visual Studio and was hoping to test out the docker image using the exact same config, like so:
docker run --rm -p 4001:80 -v C:\repos\Opserver\Opserver\Config:/app/Config/ opserver/opserver:preview6
The Config folder seems to be mounted and accessible in the container:
root@56689ec184e4:/app# ls -al /app/Config
total 56
drwxrwxrwx 1 root root 512 May 13 05:57 .
drwxr-xr-x 1 root root 4096 May 13 06:26 ..
-rwxrwxrwx 1 root root 928 May 11 03:36 CloudFlareSettings.example.json
-rwxrwxrwx 1 root root 3707 May 11 05:07 DashboardSettings.example.json
-rwxrwxrwx 1 root root 3677 May 13 04:23 DashboardSettings.json
-rwxrwxrwx 1 root root 1084 May 11 03:36 ElasticSettings.example.json
-rwxrwxrwx 1 root root 3555 May 11 03:36 ExceptionsSettings.example.json
-rwxrwxrwx 1 root root 3390 May 11 03:36 HAProxySettings.example.json
-rwxrwxrwx 1 root root 1562 May 11 04:28 HAProxySettings.json
-rwxrwxrwx 1 root root 1375 May 11 03:36 JiraSettings.example.json
-rwxrwxrwx 1 root root 1241 May 11 03:36 PagerDutySettings.example.json
-rwxrwxrwx 1 root root 239 May 11 03:36 Readme.txt
-rwxrwxrwx 1 root root 2634 May 11 03:36 RedisSettings.example.json
-rwxrwxrwx 1 root root 1102 May 11 04:27 RedisSettings.json
-rwxrwxrwx 1 root root 1382 May 11 03:36 SQLSettings.example.json
-rwxrwxrwx 1 root root 670 May 11 04:29 SQLSettings.json
-rwxrwxrwx 1 root root 415 May 11 03:44 SecuritySettings.config
-rwxrwxrwx 1 root root 401 May 11 03:36 SecuritySettings.config.example
root@56689ec184e4:/app# cat /app/Config/SecuritySettings.config
<?xml version="1.0" encoding="utf-8"?>
<!--<SecuritySettings provider="AD" apiKey="myKey">
--><!-- Optional, these networks can see the overview dashboard without authentication --><!--
<InternalNetworks>
<Network name="SE Internal" cidr="10.0.0.0/8" />
</InternalNetworks>
</SecuritySettings>-->
<!--Example of global access for everyone:-->
<SecuritySettings provider="alladmin" />
Opserver however still complains that "No security provider was found!". Any idea what's going wrong?
Spotted the craver/aspnetcore branch. Closing this issue as there's clearly configuration changes present (ie. Config/SecuritySettings.json expected instead of Config/SecuritySettings.config).
I have Opserver running fine in Visual Studio and was hoping to test out the docker image using the exact same config, like so:
The Config folder seems to be mounted and accessible in the container:
Opserver however still complains that "No security provider was found!". Any idea what's going wrong?