summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-11-20 18:13:19 +0000
committerGitHub <noreply@github.com>2023-11-20 18:13:19 +0000
commit3ab206b04350aec4872ed72ae4bd3440a47204f0 (patch)
treefc9732b59bb32531bb59bf385b154b3165a49f51 /data
parent13f6688bdbdeaf869ace5c892154c14c4b007d43 (diff)
parentf5e43b1361fb59a9c260739bdb28729d5119507c (diff)
downloadvyos-1x-3ab206b04350aec4872ed72ae4bd3440a47204f0.tar.gz
vyos-1x-3ab206b04350aec4872ed72ae4bd3440a47204f0.zip
Merge pull request #2508 from c-po/t5762-https-api-socket
http: T5762: api: make API socket backend communication the one and only default
Diffstat (limited to 'data')
-rw-r--r--data/templates/https/nginx.default.j24
1 files changed, 0 insertions, 4 deletions
diff --git a/data/templates/https/nginx.default.j2 b/data/templates/https/nginx.default.j2
index b541ff309..468640b4b 100644
--- a/data/templates/https/nginx.default.j2
+++ b/data/templates/https/nginx.default.j2
@@ -38,11 +38,7 @@ server {
# proxy settings for HTTP API, if enabled; 503, if not
location ~ ^/(retrieve|configure|config-file|image|container-image|generate|show|reset|docs|openapi.json|redoc|graphql) {
{% if server.api %}
-{% if server.api.socket %}
proxy_pass http://unix:/run/api.sock;
-{% else %}
- proxy_pass http://localhost:{{ server.api.port }};
-{% endif %}
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 600;