From 4b2d9f5d115542694727de7882a41192f399e130 Mon Sep 17 00:00:00 2001 From: videogame hacker Date: Sat, 5 Mar 2022 14:58:49 +0000 Subject: [PATCH] Add sample nginx site configuration Since we have to set the CORS header for data.json, we make sure that there's some form of documentation in this repo --- nginx-site.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nginx-site.conf diff --git a/nginx-site.conf b/nginx-site.conf new file mode 100644 index 0000000..d416970 --- /dev/null +++ b/nginx-site.conf @@ -0,0 +1,11 @@ +# assuming the dist repo lives at /srv/http/lavender.software + +location / { + alias /srv/http/lavender.software/; +} + +error_page 404 /404.html + +location = /webring/data.json { + add_header Access-Control-Allow-Origin *; +}