Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: add new DATASETTE_SSL_KEYFILE and DATASETTE_SSL_CERTFILE env vars for --ssl-keyfile and --ssl-certfile #2422

Closed
asg017 opened this issue Sep 6, 2024 · 4 comments · Fixed by #2423

Comments

@asg017
Copy link
Collaborator

asg017 commented Sep 6, 2024

An alternative to using the --ssl-keyfile and --ssl-certfile flags.

Could also be a part of datasette.yaml I guess?

@simonw
Copy link
Owner

simonw commented Sep 9, 2024

A few other existing environment variables:

envvar="DATASETTE_PUBLISH_SECRET",

envvar="DATASETTE_SECRET",

envvar="SQLITE_EXTENSIONS",

DATASETTE_TRACE_PLUGINS = os.environ.get("DATASETTE_TRACE_PLUGINS", None)

DATASETTE_LOAD_PLUGINS = os.environ.get("DATASETTE_LOAD_PLUGINS", None)

@simonw
Copy link
Owner

simonw commented Sep 9, 2024

So we've been using DATASETTE_ prefix already, let's stick with that.

simonw pushed a commit that referenced this issue Sep 9, 2024
@simonw
Copy link
Owner

simonw commented Sep 9, 2024

I'm going to document these in a new section on https://docs.datasette.io/en/latest/cli-reference.html#datasette-serve

@simonw
Copy link
Owner

simonw commented Sep 9, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants