validation: do not implicitly append url
This commit is contained in:
parent
5ae287f3f2
commit
4fec1bba47
@ -59,7 +59,7 @@ services:
|
|||||||
- ../auth-compose/strafesnet_staging.env
|
- ../auth-compose/strafesnet_staging.env
|
||||||
environment:
|
environment:
|
||||||
- ROBLOX_GROUP_ID=17032139 # "None" is special case string value
|
- ROBLOX_GROUP_ID=17032139 # "None" is special case string value
|
||||||
- API_HOST_INTERNAL=http://submissions:8083
|
- API_HOST_INTERNAL=http://submissions:8083/v1
|
||||||
- NATS_HOST=nats:4222
|
- NATS_HOST=nats:4222
|
||||||
depends_on:
|
depends_on:
|
||||||
- nats
|
- nats
|
||||||
|
@ -39,8 +39,7 @@ async fn main()->Result<(),StartupError>{
|
|||||||
let cookie_context=rbx_asset::cookie::CookieContext::new(rbx_asset::cookie::Cookie::new(cookie));
|
let cookie_context=rbx_asset::cookie::CookieContext::new(rbx_asset::cookie::Cookie::new(cookie));
|
||||||
|
|
||||||
// maps-service api
|
// maps-service api
|
||||||
let mut api_host_internal=std::env::var("API_HOST_INTERNAL").expect("API_HOST_INTERNAL env required");
|
let api_host_internal=std::env::var("API_HOST_INTERNAL").expect("API_HOST_INTERNAL env required");
|
||||||
api_host_internal+="v1/";
|
|
||||||
let api=submissions_api::internal::Context::new(api_host_internal).map_err(StartupError::API)?;
|
let api=submissions_api::internal::Context::new(api_host_internal).map_err(StartupError::API)?;
|
||||||
|
|
||||||
// nats
|
// nats
|
||||||
|
Loading…
x
Reference in New Issue
Block a user