Skip to content

Commit

Permalink
Merge pull request #37 from bartfeenstra/nginx-config
Browse files Browse the repository at this point in the history
Document the nginx configuration needed to serve Betty.
  • Loading branch information
bartfeenstra authored Mar 13, 2019
2 parents 404d4b9 + 34c726d commit 35e2d3d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,29 @@
[![Build Status](https://travis-ci.org/bartfeenstra/betty.svg?branch=master)](https://travis-ci.org/bartfeenstra/betty)

Betty is a static site generator for [Gramps](https://gramps-project.org/) XML files.

## Usage

### Nginx configuration
```
server {
# The port to listen to.
listen 80;
# The publicly visible hostname.
server_name $publicHostname;
# The path to the local web root.
root $localWebRoot;
error_page 401 /.error/401.html;
error_page 403 /.error/403.html;
error_page 404 /.error/404.html;
location /.error {
internal;
}
location / {
index index.html;
try_files $uri $uri/ =404;
}
}
```

0 comments on commit 35e2d3d

Please sign in to comment.