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
This commit is contained in:
Charlotte Som 2022-03-05 14:58:49 +00:00
parent 5e29b82c8d
commit 4b2d9f5d11

11
nginx-site.conf Normal file
View file

@ -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 *;
}