Skip to content

Commit

Permalink
Use 2 env vars for Woop URLs.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsegura committed Feb 6, 2025
1 parent a411675 commit 3d0a9e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ OPTIN_EXPORT_USERS_ENABLED=0
DV4CUL_ENABLED=0
WOOPIT_CLIENT_ID=
WOOPIT_CLIENT_SECRET=
WOOPIT_HOST=recette.gcp.last-mile.fr
WOOPIT_AUTHENTICATION_API_URL=https://connect.recette.gcp.last-mile.fr/api/oauth/token
WOOPIT_CARRIER_API_URL=https://car-api.recette.gcp.last-mile.fr
DABBA_ENABLED=0
DABBA_BASE_URL=https://api.dabba-consigne.fr
DABBA_CLIENT_ID=
Expand Down
2 changes: 1 addition & 1 deletion app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ framework:
cubejs.client:
base_uri: "%env(CUBEJS_API_URL)%/"
woopit.http_client:
base_uri: 'https://car-api.%env(WOOPIT_HOST)%/'
base_uri: '%env(WOOPIT_CARRIER_API_URL)%/'
dabba.client:
base_uri: "%env(DABBA_BASE_URL)%/"
umap.client:
Expand Down
2 changes: 1 addition & 1 deletion app/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ services:
class: BenjaminFavre\OAuthHttpClient\GrantType\ClientCredentialsGrantType
arguments: [
'@woopit.http_client',
'https://connect.%env(WOOPIT_HOST)%/api/oauth/token',
'%env(WOOPIT_AUTHENTICATION_API_URL)%',
'%env(WOOPIT_CLIENT_ID)%',
'%env(WOOPIT_CLIENT_SECRET)%'
]
Expand Down

0 comments on commit 3d0a9e5

Please sign in to comment.