kandra: Add localhost access to internal APIs on port 80.

This parallels 02d3fb7666.
This commit is contained in:
Alex Vandiver 2024-09-25 09:59:35 -04:00 committed by Tim Abbott
parent 5a978edf40
commit 77a121082b
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,15 @@
server {
# If coming from localhost, we do allow access to internal
# APIs over HTTP.
listen 127.0.0.1:80;
listen [::1]:80;
location /api/internal/ {
include /etc/nginx/zulip-include/api_headers;
include uwsgi_params;
}
}
include /etc/nginx/zulip-include/trusted-proto;
include /etc/nginx/zulip-include/s3-cache;
include /etc/nginx/zulip-include/upstreams;

View File

@ -1,3 +1,15 @@
server {
# If coming from localhost, we do allow access to internal
# APIs over HTTP.
listen 127.0.0.1:80;
listen [::1]:80;
location /api/internal/ {
include /etc/nginx/zulip-include/api_headers;
include uwsgi_params;
}
}
include /etc/nginx/zulip-include/trusted-proto;
include /etc/nginx/zulip-include/s3-cache;
include /etc/nginx/zulip-include/upstreams;