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:
parent
5e29b82c8d
commit
4b2d9f5d11
1 changed files with 11 additions and 0 deletions
11
nginx-site.conf
Normal file
11
nginx-site.conf
Normal 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 *;
|
||||
}
|
Loading…
Reference in a new issue