From 428308f07c77b6a374b7f0f9cef8a163c5e52dd2 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 28 Nov 2022 08:53:45 +0100 Subject: support peer aliases --- etc/nginx/conf.d/default.conf | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'etc') diff --git a/etc/nginx/conf.d/default.conf b/etc/nginx/conf.d/default.conf index 176010f..88dcc0f 100644 --- a/etc/nginx/conf.d/default.conf +++ b/etc/nginx/conf.d/default.conf @@ -12,6 +12,14 @@ server { index index.html; } + location = /api/aliases { + alias /data/aliases; + default_type text/plain; + # Disable caching? + add_header Cache-Control no-store; + add_header Last-Modified $date_gmt; + } + location ~ ^/api/(?ListPeers|GetDeviceInfo)$ { proxy_set_header Content-Type application/json; proxy_set_header Referer ""; -- cgit v1.2.3