example-basic
Basic-Auth example (Hanami 1.8.x)
From 1.8.x onward all environment-specific values, including Basic-Auth, live in one file:
/opt/hanami-ext/config/customer-env.yml
You no longer touchcustomer.yml
,customer-iam.yml
, orcustomer-workflow.yml
for a simple Basic-Auth deployment.
1. Skeleton customer-env.yml
env:
hanami:
elasticsearch:
url: "https://<elastic hostname>:<port>"
username: "<elastic username>"
password: "<elastic password>"
triplestore:
url: "http://<triplestore hostname>:<triplestore port>/<sparql path>"
username: "<triplestore user>"
password: "<triplestore password>"
catalogue:
url: "http://<catalogue application host>:<catalogue application port>"
security:
iam: false # <-- keep 'false' for Basic-Auth
issuer-uri: "" # not used when iam = false
client-id: "" # idem
client-secret: "" # idem
Save the file, one per environment, under:
/opt/hanami-ext/config/customer-env.yml
(Delete the .example
once you have the real file.)
2. What goes where?
Placeholder (old docs ≤ 1.6.x) | New location (customer-env.yml ) |
---|---|
<elastic hostname> , <elastic username> , <elastic password> | env.hanami.elasticsearch.* |
<triplestore hostname> , <port> , <sparql path> , <user> , <password> | env.hanami.triplestore.* |
<catalogue application host> , <port> | env.hanami.catalogue.url |
(Everything else in the old “Basic Auth Docker installation” guide is now baked into the release defaults.)