Skip to content

Commit 1e15629

Browse files
docs: add info about env var usage (#10755)
1 parent 2eabf70 commit 1e15629

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

docs/en/latest/deployment-modes.md

+17
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,23 @@ routes:
151151

152152
*WARNING*: APISIX will not load the rules into memory from file `conf/apisix.yaml` if there is no `#END` at the end.
153153

154+
Environment variables can also be used like so:
155+
156+
```yaml
157+
routes:
158+
-
159+
uri: /hello
160+
upstream:
161+
nodes:
162+
"${{UPSTREAM_ADDR}}": 1
163+
type: roundrobin
164+
#END
165+
```
166+
167+
*WARNING*: When using docker to deploy APISIX in standalone mode. New environment variables added to `apisix.yaml` while APISIX has been initialized will only take effect after a reload.
168+
169+
More information about using environment variables can be found [here](./admin-api.md#using-environment-variables).
170+
154171
### How to configure Route
155172

156173
Single Route:

docs/en/latest/profile.md

+2
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ routes:
103103

104104
Initialize and start APISIX in standalone mode, requests to `/anything` should now be forwarded to `httpbin.org:80/anything`.
105105

106+
*WARNING*: When using docker to deploy APISIX in standalone mode. New environment variables added to `apisix.yaml` while APISIX has been initialized will only take effect after a reload.
107+
106108
## Using the `APISIX_PROFILE` environment variable
107109

108110
If you have multiple configuration changes for multiple environments, it might be better to have a different configuration file for each.

0 commit comments

Comments
 (0)