Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions src/content/docs/latest/en/ops/how-tos/builtin-plugin-url.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,34 @@ helm upgrade higress --version ${higress_version} -n higress-system higress.io/h

Directly modify the `compose/env/console.env` file and add the corresponding environment variable. Note that the `$` character in the environment variable value needs to be escaped as `$$`, otherwise it will not take effect properly, for example:

**Example 1:**

```bash
HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN=http://192.168.1.1:8080/plugins/$${name}.wasm
```

**Example 2:**

```bash
HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN=oci://hub.example.com/wasm-plugins/$${name}:$${version}
```

### Configuration Method for Docker All-in-One Deployment

Add the `-e` parameter to the docker command when starting the container to specify the environment variable. Note that the `$` character in the environment variable value needs to be escaped as `\$`, otherwise it will not take effect properly, for example:

**Example 1:**

```bash
-e HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN=http://192.168.1.1:8080/plugins/\${name}.wasm
```

**Example 2:**

```bash
-e HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN=oci://hub.example.com/wasm-plugins/\${name}:\${version}
```

### Notes

The above configuration will not affect plugin configurations that have already been saved. If you need to modify the image URLs in these plugin configurations, you can make targeted modifications on the plugin configuration page of the Higress Console.
Expand Down Expand Up @@ -116,14 +132,30 @@ helm upgrade higress --version ${higress_version} -n higress-system higress.io/h

Directly modify the `compose/env/controller.env` file and add the corresponding environment variable. Note that the `$` character in the environment variable value needs to be escaped as `$$`, otherwise it will not take effect properly, for example:

**Example 1:**

```bash
MCP_SERVER_WASM_IMAGE_URL=http://192.168.1.1:8080/plugins/mcp-server.wasm
```

**Example 2:**

```bash
MCP_SERVER_WASM_IMAGE_URL=oci://hub.example.com/wasm-plugins/mcp-server:0.0.1
```

### Configuration Method for Docker All-in-One Deployment

Add the `-e` parameter to the docker command when starting the container to specify the environment variable. Note that the `$` character in the environment variable value needs to be escaped as `\$`, otherwise it will not take effect properly, for example:

**Example 1:**

```bash
-e MCP_SERVER_WASM_IMAGE_URL=http://192.168.1.1:8080/plugins/mcp-server.wasm
```

**Example 2:**

```bash
-e MCP_SERVER_WASM_IMAGE_URL=oci://hub.example.com/wasm-plugins/mcp-server:0.0.1
```
32 changes: 32 additions & 0 deletions src/content/docs/latest/zh-cn/ops/how-tos/builtin-plugin-url.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,34 @@ helm upgrade higress --version ${higress_version} -n higress-system higress.io/h

直接修改 `compose/env/console.env` 文件,添加对应的环境变量即可。需要注意的是,环境变量取值中的 `$` 字符需要转义成 `$$`,否则将无法正常生效,例如:

**例 1:**

```bash
HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN=http://192.168.1.1:8080/plugins/$${name}.wasm
```

**例 2:**

```bash
HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN=oci://hub.example.com/wasm-plugins/$${name}:$${version}
```

### Docker All-in-One 部署方式配置方法

在启动容器的 docker 命令中添加 `-e` 参数来指定环境变量。需要注意的是,环境变量取值中的 `$` 字符需要转义成 `\$`,否则将无法正常生效,例如:

**例 1:**

```bash
-e HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN=http://192.168.1.1:8080/plugins/\${name}.wasm
```

**例 2:**

```bash
-e HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN=oci://hub.example.com/wasm-plugins/\${name}:\${version}
```

### 注意事项

以上配置不会影响已经保存的插件配置。如果需要修改这些插件配置中的镜像地址,可以在 Higress Console 的插件配置页面进行针对性修改。
Expand Down Expand Up @@ -116,14 +132,30 @@ helm upgrade higress --version ${higress_version} -n higress-system higress.io/h

直接修改 `compose/env/controller.env` 文件,添加对应的环境变量即可。需要注意的是,环境变量取值中的 `$` 字符需要转义成 `$$`,否则将无法正常生效,例如:

**例 1:**

```bash
MCP_SERVER_WASM_IMAGE_URL=http://192.168.1.1:8080/plugins/mcp-server.wasm
```

**例 2:**

```bash
MCP_SERVER_WASM_IMAGE_URL=oci://hub.example.com/wasm-plugins/mcp-server:0.0.1
```

### Docker All-in-One 部署方式配置方法

在启动容器的 docker 命令中添加 `-e` 参数来指定环境变量。需要注意的是,环境变量取值中的 `$` 字符需要转义成 `\$`,否则将无法正常生效,例如:

**例 1:**

```bash
-e MCP_SERVER_WASM_IMAGE_URL=http://192.168.1.1:8080/plugins/mcp-server.wasm
```

**例 2:**

```bash
-e MCP_SERVER_WASM_IMAGE_URL=oci://hub.example.com/wasm-plugins/mcp-server:0.0.1
```