docker: configure config.toml using environment variable #751
+74
−9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Instead of updating
config.toml
file to configure Perplexica, We can use environment variables to configure those configs.For example to configure below section
we can set envrionment variable
MODELS_CUSTOM_OPENAI_API_KEY="sk-123456"
,MODELS_CUSTOM_OPENAI_API_URL="http://localopenai:11134"
andMODELS_CUSTOM_OPENAI_MODEL_NAME="meta-llama/llama-4"
by simply setting variableSECTION_WITH_DOTS_REPLACED_WITH_UNDERSCORE_KEYNAME=VALUE
This will fix issue #673 and #750.