mirror of https://github.com/zulip/zulip.git
kandra: Add localhost access to internal APIs on port 80.
This parallels 02d3fb7666
.
This commit is contained in:
parent
5a978edf40
commit
77a121082b
|
@ -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/trusted-proto;
|
||||||
include /etc/nginx/zulip-include/s3-cache;
|
include /etc/nginx/zulip-include/s3-cache;
|
||||||
include /etc/nginx/zulip-include/upstreams;
|
include /etc/nginx/zulip-include/upstreams;
|
||||||
|
|
|
@ -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/trusted-proto;
|
||||||
include /etc/nginx/zulip-include/s3-cache;
|
include /etc/nginx/zulip-include/s3-cache;
|
||||||
include /etc/nginx/zulip-include/upstreams;
|
include /etc/nginx/zulip-include/upstreams;
|
||||||
|
|
Loading…
Reference in New Issue