question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configuration for key_file and cert_file from ENV vars

See original GitHub issue

Hi

is there some posibility to set key_file and cert_file in settings from os.environ instead of setting it to file path? my application is running in docker container, so i need to set this keys from outside

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
peppelinuxcommented, May 14, 2021

thank you @tyctor and @lgarvey now the documentation also cover this aspect

1reaction
peppelinuxcommented, Apr 23, 2021

Another workaround would be https://docs.python.org/3/library/tempfile.html

In the settings create two temp files, then write content from env vars, then put tmpfile.name in the key/cert value

Read more comments on GitHub >

github_iconTop Results From Across the Web

KeyFile and CertFile are not presented · Issue #11102 - GitHub
bin/etcd --config-file=/etc/etcd/conf.yml {"level":"info" ... other configuration command line flags and environment variables will be ...
Read more >
Configuration flags - etcd
Configuration flags. etcd is configurable through command-line flags and environment variables. Options set on the command line take ...
Read more >
Settings — Gunicorn 20.1.0 documentation
Settings ¶. This is an exhaustive list of settings for Gunicorn. Some settings are only able to be set from a configuration file....
Read more >
Configuration options - Jupyter Enterprise Gateway!
A configuration file; Command line parameters; Environment variables ... (KG_KEYFILE env var) --certfile=<Unicode> (KernelGatewayApp.certfile) Default: None ...
Read more >
config | npm Docs
per-user configuration file (defaults to $HOME/.npmrc ; configurable via CLI option --userconfig or environment variable $NPM_CONFIG_USERCONFIG ); global ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found