Config dir, add static API token (ugh), soon to be stripe configs
This commit is contained in:
1 parent
784f768cb9
commit
198f0e6493
3 files changed
+14
-2
No files matched your search
@@ -1,5 +1,5 @@
|
||||
# A list of statically-configured (not-DB backed) API tokens.
|
||||
# This file is not distributed with the docker image and is just an example for local development.
|
||||
# This file is *NOT* distributed with the docker image and is just an example for local development.
|
||||
|
||||
# kubectl create configmap static-api-tokens --namespace storyteller --from-file=static_api_tokens.toml
|
||||
|
||||
@@ -22,6 +22,13 @@ maybe_user_token = 'U:VR4HNTYCDBR9W'
|
||||
api_token = "SAPI:FTK789_6096133E1D79D6FB"
|
||||
maybe_user_token = 'U:0S09H086R6TRH'
|
||||
|
||||
# /profile/Hmm (ID10T#6255)
|
||||
# Requested 2022-04-29 in Discord
|
||||
# Using for their own mobile TTS app.
|
||||
[[api_tokens]]
|
||||
api_token = "SAPI:HMM_7B3CFC9D64A90006"
|
||||
maybe_user_token = 'U:B2MQPN6ZGAXH5'
|
||||
|
||||
## /profile/api_duke (Duke#4009)
|
||||
## Wants this for a Hackathon but "won't pay".
|
||||
## Update: Cancelled hackathon
|
||||
@@ -0,0 +1,5 @@
|
||||
# Stripe configs
|
||||
# This file will get bundled with `storyteller-web` in the Docker image,
|
||||
# but it can be overwritten by Kubernetes if necessary.
|
||||
# IT CONTAINS NO SECRETS, SUCH AS API KEYS.
|
||||
|
||||
@@ -392,7 +392,7 @@ async fn main() -> AnyhowResult<()> {
|
||||
fn read_static_api_tokens() -> StaticApiTokenSet {
|
||||
let filename = easyenv::get_env_string_or_default(
|
||||
"STATIC_API_TOKENS_CONFIG_FILE",
|
||||
"static_api_tokens.toml");
|
||||
"./configs/static_api_tokens.toml");
|
||||
|
||||
StaticApiTokenSet::from_file(&filename)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user