rstudio/plumber

Set plumber options through env

Open

#933 geöffnet am 24. Nov. 2023

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)R (257 Forks)batch import
difficulty: intermediateeffort: lowhelp wantedtype: enhancement

Repository-Metriken

Stars
 (1.437 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

User @slodge proposed to set plumber options through env variable.

Read an option value, if null, check for an ENV variable?

This would allow some of the API behaviors to change without redeploying code. I can see this to be useful in at least a couple scenario like activating debug with redeploying, changing secret.

Current user probably have some kind of options setting mechanism in place within their API, but it would be pretty "dope" to have it available before you know you need it.

I think this should be extended to all plumber options with a proper naming scheme like "PLUMBER_XXX_", replacing the dot in the option name with an underscore and having all caps?

Contributor Guide