diff options
Diffstat (limited to 'etc')
-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 ""; |