From 3e561b847406714adf733d8814d42c5765d8a07b Mon Sep 17 00:00:00 2001 From: videogame hacker Date: Sat, 5 Mar 2022 17:45:24 +0000 Subject: [PATCH] Rewrite the nginx site config --- nginx-site.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nginx-site.conf b/nginx-site.conf index d416970..89a096a 100644 --- a/nginx-site.conf +++ b/nginx-site.conf @@ -1,11 +1,11 @@ # assuming the dist repo lives at /srv/http/lavender.software location / { - alias /srv/http/lavender.software/; + root /srv/http/lavender.software/; + + location = /webring/data.json { + add_header Access-Control-Allow-Origin *; + } } error_page 404 /404.html - -location = /webring/data.json { - add_header Access-Control-Allow-Origin *; -}