diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-05-26 09:06:39 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-05-26 09:09:37 +0000 |
commit | d15af8e9fdc32bd2e3471a300d9cf32e8eff00a0 (patch) | |
tree | a3493dad283451d7cc3f5067e02278268ebd49ec /data/templates | |
parent | 9854c72dfc8c88c9b1c0b21637091216aed94baa (diff) | |
download | vyos-1x-d15af8e9fdc32bd2e3471a300d9cf32e8eff00a0.tar.gz vyos-1x-d15af8e9fdc32bd2e3471a300d9cf32e8eff00a0.zip |
http-api: T4442: Add action reset
Add action 'reset' (op-mode) for HTTP-API
http://localhost/reset
curl --unix-socket /run/api.sock -X POST -Fkey=mykey \
-Fdata='{"op": "reset", "path": ["ip", "bgp", "192.0.2.14"]}' \
http://localhost/reset
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/https/nginx.default.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/https/nginx.default.tmpl b/data/templates/https/nginx.default.tmpl index 968ba806c..04e0d558a 100644 --- a/data/templates/https/nginx.default.tmpl +++ b/data/templates/https/nginx.default.tmpl @@ -41,7 +41,7 @@ server { ssl_protocols TLSv1.2 TLSv1.3; # proxy settings for HTTP API, if enabled; 503, if not - location ~ /(retrieve|configure|config-file|image|generate|show|docs|openapi.json|redoc|graphql) { + location ~ /(retrieve|configure|config-file|image|generate|show|reset|docs|openapi.json|redoc|graphql) { {% if server.api %} {% if server.api.socket %} proxy_pass http://unix:/run/api.sock; |