You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/latest/deployment-modes.md
+17
Original file line number
Diff line number
Diff line change
@@ -151,6 +151,23 @@ routes:
151
151
152
152
*WARNING*: APISIX will not load the rules into memory from file `conf/apisix.yaml` if there is no `#END` at the end.
153
153
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).
Copy file name to clipboardExpand all lines: docs/en/latest/profile.md
+2
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,8 @@ routes:
103
103
104
104
Initialize and start APISIX in standalone mode, requests to `/anything` should now be forwarded to `httpbin.org:80/anything`.
105
105
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
+
106
108
## Using the `APISIX_PROFILE` environment variable
107
109
108
110
If you have multiple configuration changes for multiple environments, it might be better to have a different configuration file for each.
0 commit comments