diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-11-28 08:53:45 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-11-28 08:53:45 +0100 |
commit | 428308f07c77b6a374b7f0f9cef8a163c5e52dd2 (patch) | |
tree | 36c439efa29bf1b724ecaab6180e30edffd3b47f /etc/nginx/conf.d/default.conf | |
parent | workflows/ci: set-output is deprecated (diff) | |
download | wg-api-web-0.1.0.tar.gz wg-api-web-0.1.0.zip |
support peer aliasesv0.1.0
Diffstat (limited to '')
-rw-r--r-- | etc/nginx/conf.d/default.conf | 8 |
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 ""; |