Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the nginx configuration needed to serve Betty. #37

Merged
merged 1 commit into from
Mar 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}

```