diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-08 07:10:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-08 07:10:31 +0200 |
commit | 5399a8f75b5a44dd789101844d52b5f9c4e301f9 (patch) | |
tree | e943d2dbdf44e454f7d0d91d3a7c7a0f7f522b67 /data/templates/https/nginx.default.tmpl | |
parent | 44c67e54ef6ecdf4d7b62e765ccfa4e724c14316 (diff) | |
parent | 84bfac85a711d22d97e1ee39a5233738e14a7750 (diff) | |
download | vyos-1x-5399a8f75b5a44dd789101844d52b5f9c4e301f9.tar.gz vyos-1x-5399a8f75b5a44dd789101844d52b5f9c4e301f9.zip |
Merge pull request #1277 from jestabro/api-smoketest
T4347: Bug fix and extension of HTTP smoketest
Diffstat (limited to 'data/templates/https/nginx.default.tmpl')
-rw-r--r-- | data/templates/https/nginx.default.tmpl | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/data/templates/https/nginx.default.tmpl b/data/templates/https/nginx.default.tmpl index e8511bd62..a51505270 100644 --- a/data/templates/https/nginx.default.tmpl +++ b/data/templates/https/nginx.default.tmpl @@ -53,19 +53,6 @@ server { } error_page 497 =301 https://$host:{{ server.port }}$request_uri; - error_page 501 502 503 =200 @50*_json; - -{% if api_set %} - location @50*_json { - default_type application/json; - return 200 '{"error": "service https api unavailable at this proxy address: set service https api-restrict virtual-host"}'; - } -{% else %} - location @50*_json { - default_type application/json; - return 200 '{"error": "Start service in configuration mode: set service https api"}'; - } -{% endif %} } |