Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environments variables toml configuration #393

Open
juanledesma84 opened this issue Dec 17, 2020 · 0 comments
Open

Environments variables toml configuration #393

juanledesma84 opened this issue Dec 17, 2020 · 0 comments

Comments

@juanledesma84
Copy link

Description:
Hi folks

I'm trying to configure those parameters in deployment.toml:

[[apim.gateway.environment]]
ws_endpoint = "ws://$env{HOST}:9099"
wss_endpoint = "wss://$env{HOST}:8099"
http_endpoint = "http://$env{HOST}:${http.nio.port}"
https_endpoint = "https://$env{HOST}:${https.nio.port}"

[apim.devportal]
url = "https://$env{DNS}:${mgt.transport.https.port}/devportal"

And when I checked at api-manager.xml it is:

<Environment type="hybrid" api-console="true" isDefault="true">
  <!-- Endpoint URLs for the APIs hosted in this API gateway.-->
  <GatewayEndpoint>https://$env{DNS}:${https.nio.port},http://$env{DNS}:${http.nio.port}</GatewayEndpoint>
  <!-- Endpoint URLs of the WebSocket APIs hosted in this API Gateway -->
  <GatewayWSEndpoint>ws://$env{DNS}:9099,wss://$env{DNS}:8099</GatewayWSEndpoint>
</Environment>

I wonder if there is a workaround to solve this issue.

Affected Product Version:
Docker APIM 3.2.0
Image: wso2/wso2am:3.2.0-alpine

OS, DB, other environment details and versions:
Windows 10 Pro
H2 DB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant