summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-20 19:31:33 +0100
committerGitHub <noreply@github.com>2023-11-20 19:31:33 +0100
commit03740f14ff0b34c997e74511ac35dbf3c1e48309 (patch)
tree989ecacd04cf311c6bf6d86dcda1f69ff6b215c0 /data
parent0650054e646d5119040635fbd19ae15785c16aa8 (diff)
parent3280a153713decf28eb5c564573028df19a4e1b1 (diff)
downloadvyos-1x-03740f14ff0b34c997e74511ac35dbf3c1e48309.tar.gz
vyos-1x-03740f14ff0b34c997e74511ac35dbf3c1e48309.zip
Merge pull request #2515 from vyos/mergify/bp/sagitta/pr-2508
http: T5762: api: make API socket backend communication the one and only default (backport #2508)
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;