Closed JonLaliberte closed 5 years ago
Moving it to /config would be hacky because if it got updated later on by the developer, the user wouldn't get those updates and it may break.
I'll get in touch with the dev and see if it is something that may be added to the gui settings.
In the meantime, you can mount that file from a local location through your docker create/run command or compose yml.
-v /path/to/custom/appsettings.json:/opt/ombi/appsettings.json
Got it, thanks for the follow up!
There are a few options that can be done right now. Looking at the Ombi code it's doing this:
var builder = new ConfigurationBuilder()
.SetBasePath(env.ContentRootPath)
.AddJsonFile("appsettings.json", false, false)
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", true)
.AddEnvironmentVariables();
You can make a new appsettings.something.json file and set the env name; but this might impact other items in the Ombi code.
You need to find out what the current EnvironmentName is set to.. or you can set it yourself by using the environment variable ASPNETCORE_ENVIRONMENT
I don't plan to give more info on this one since it's convoluted
You could add environment variables that match the setting you want to change. Here's how you might change the log level.
The json:
"Logging": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Debug",
"System": "Debug",
"Microsoft": "None",
"Hangfire": "None"
}
},
You would add an environment variable -e "Logging:LogLevel:Default=Fatal"
The other option is to ask Ombi to add another configuration designed for end user changes then expose that.
https://github.com/tidusjar/Ombi/issues/2653 gives further information on this one.
A solution was provided using environment variables
Sorry for bringing this up, but how do you apply the environment variables for the backgrounds considering that it is an array?
I've tried "LandingPageBackground:Movies=" and "LandingPageBackground:Movies=[]" but neither seems to work.
@eltiel following the instructions that's already been mentioned: https://github.com/linuxserver/docker-ombi/issues/29#issuecomment-380114852
@eltiel following the instructions that's already been mentioned: #29 (comment)
I thought that method isn't recommended?
The only way to make a change to the background images is by editing the /opt/ombi/appsettings.json file. It would be nice if this file were in /config (so the changes persist).