aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc/nginx/conf.d/default.conf
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-11-28 08:53:45 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2022-11-28 08:53:45 +0100
commit428308f07c77b6a374b7f0f9cef8a163c5e52dd2 (patch)
tree36c439efa29bf1b724ecaab6180e30edffd3b47f /etc/nginx/conf.d/default.conf
parentworkflows/ci: set-output is deprecated (diff)
downloadwg-api-web-428308f07c77b6a374b7f0f9cef8a163c5e52dd2.tar.gz
wg-api-web-428308f07c77b6a374b7f0f9cef8a163c5e52dd2.zip
support peer aliasesv0.1.0
Diffstat (limited to '')
-rw-r--r--etc/nginx/conf.d/default.conf8
1 files changed, 8 insertions, 0 deletions
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/(?<rpc_method>ListPeers|GetDeviceInfo)$ {
proxy_set_header Content-Type application/json;
proxy_set_header Referer "";