tunnels/contracts/
tunnel_environments.rs1use crate::contracts::tunnel_service_properties::*;
5
6pub fn env_production() -> TunnelServiceProperties {
7 TunnelServiceProperties {
8 service_uri: format!("https://{}", PROD_DNS_NAME),
9 service_app_id: PROD_FIRST_PARTY_APP_ID.to_owned(),
10 service_internal_app_id: PROD_THIRD_PARTY_APP_ID.to_owned(),
11 github_app_client_id: PROD_GITHUB_APP_CLIENT_ID.to_owned(),
12 }
13}
14
15pub fn env_staging() -> TunnelServiceProperties {
16 TunnelServiceProperties {
17 service_uri: format!("https://{}", PPE_DNS_NAME),
18 service_app_id: PROD_FIRST_PARTY_APP_ID.to_owned(),
19 service_internal_app_id: PPE_THIRD_PARTY_APP_ID.to_owned(),
20 github_app_client_id: NON_PROD_GITHUB_APP_CLIENT_ID.to_owned(),
21 }
22}
23
24pub fn env_development() -> TunnelServiceProperties {
25 TunnelServiceProperties {
26 service_uri: format!("https://{}", DEV_DNS_NAME),
27 service_app_id: DEV_FIRST_PARTY_APP_ID.to_owned(),
28 service_internal_app_id: DEV_THIRD_PARTY_APP_ID.to_owned(),
29 github_app_client_id: NON_PROD_GITHUB_APP_CLIENT_ID.to_owned(),
30 }
31}