Files
liquor-cabinet/config.yml.erb.example
raucao 6d8394d970
CI / test (pull_request) Successful in 21s
Support hashed remoteStorage access tokens
Add a hashed_access_tokens config option (env RS_HASHED_ACCESS_TOKENS) that hashes the presented bearer token and looks up its SHA256 digest first, falling back to the plaintext key when no digest matches. When disabled (the default), the lookup is unchanged.

Related: kosmos/akkounts#259.
2026-11-04 09:56:59 +04:00

20 lines
648 B
Plaintext

development: &defaults
maintenance: false
hashed_access_tokens: <%= ENV["RS_HASHED_ACCESS_TOKENS"] == "true" %>
redis:
host: <%= ENV["REDIS_HOST"] || "localhost" %>
port: <%= ENV["REDIS_PORT"] || 6379 %>
db: <%= ENV["REDIS_DB"] || 1 %>
s3: &s3_defaults
endpoint: <%= ENV["S3_ENDPOINT"] || "http://127.0.0.1:9000" %>
region: <%= ENV["S3_REGION"] || "us-east-1" %>
access_key_id: <%= ENV["S3_ACCESS_KEY"] || "minioadmin" %>
secret_key_id: <%= ENV["S3_SECRET_KEY"] || "minioadmin" %>
bucket: <%= ENV["S3_BUCKET"] || "rs-development" %>
test:
<<: *defaults
staging:
<<: *defaults
production:
<<: *defaults