Skip to content

Commit

Permalink
document installation
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Feb 12, 2023
1 parent cd36168 commit 41094d8
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,47 @@ We accept PR on github for one-off/small contributions but it is encouraged to
submit your patches with git-send-email to the Patchew development and
discussion mailing list, patchew-devel@redhat.com.

## Installing

Patchew can be installed in a podman container; it is possible to connect
the container to a webserver running on the host via either port 80 or a
FastCGI socket.

Either SQLite or PostgreSQLcan be used as the database backend; the latter
requires a separate container.

The `scripts/deploy` scripts is a wrapper script that uses Ansible to
install the various components of Patchew. For example:

```
# ./scripts/deploy --db localhost
# systemctl enable patchew-server-db
# ./scripts/deploy --server localhost
# systemctl enable patchew-server
```

A sample nginx configuration is as follows:

```
upstream patchew-server {
server unix:/data/patchew-server/data/nginx.sock fail_timeout=0;
}
server {
server_name patchew.org;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header Host $host;
location / {
proxy_pass http://patchew-server;
}
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
client_max_body_size 100M;
}
```

## Known issues

- Binary patches are not recognized correctly.
Expand Down

0 comments on commit 41094d8

Please sign in to comment.