File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ services:
4747 context : .
4848 environment :
4949 UPSTREAM_URL : ${UPSTREAM_URL:-http://stac:8001}
50- OIDC_DISCOVERY_URL : ${OIDC_DISCOVERY_URL:-https://accounts.google.com/.well-known/openid-configuration}
50+ OIDC_DISCOVERY_URL : ${OIDC_DISCOVERY_URL:-http://127.0.0.1:5556/dex/.well-known/openid-configuration}
51+ OIDC_DISCOVERY_INTERNAL_URL : ${OIDC_DISCOVERY_INTERNAL_URL:-http://dex:5556/dex/.well-known/openid-configuration}
5152 env_file :
5253 - path : .env
5354 required : false
@@ -56,6 +57,14 @@ services:
5657 volumes :
5758 - ./src:/app/src
5859
60+ dex :
61+ image : ghcr.io/dexidp/dex:latest
62+ ports :
63+ - " 5556:5556"
64+ volumes :
65+ - ./examples/dex/config.yaml:/etc/dex/cfg/config.yaml
66+ entrypoint : ["dex", "serve", "/etc/dex/cfg/config.yaml"]
67+
5968networks :
6069 default :
6170 name : eoapi-network
Original file line number Diff line number Diff line change 1+ issuer : http://localhost:5556/dex
2+
3+ storage :
4+ type : memory
5+
6+ web :
7+ http : 0.0.0.0:5556
8+ allowedOrigins : ['*']
9+
10+ oauth2 :
11+ skipApprovalScreen : true
12+
13+ staticClients :
14+ - id : stac
15+ redirectURIs :
16+ - " http://localhost:8000/docs/oauth2-redirect"
17+ name : " STAC API (behind auth proxy)"
18+ secret : super-super-secret
19+
20+ enablePasswordDB : true
21+
22+ staticPasswords :
23+ 24+ username : " admin"
25+ # password: "password"
26+ # bcrypt hash of the string "password": $(echo password | htpasswd -BinC 10 admin | cut -d: -f2)
27+ hash : " $2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W"
28+ userID : " 08a8684b-db88-4b73-90a9-3cd1661f5466"
You can’t perform that action at this time.
0 commit comments