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
pull/2/head
Charlotte Som 2022-03-05 14:58:49 +00:00
parent 5e29b82c8d
commit 4b2d9f5d11
1 changed files with 11 additions and 0 deletions

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