[Patchew-devel] [PATCH] document installation

Paolo Bonzini posted 1 patch 1 year, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/patchew-ci tags/patchew/20230207110821.64290-2-pbonzini@redhat.com
README.md | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
[Patchew-devel] [PATCH] document installation
Posted by Paolo Bonzini 1 year, 2 months ago
---
 README.md | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/README.md b/README.md
index 6e2cf8d..a36e2b8 100644
--- a/README.md
+++ b/README.md
@@ -32,6 +32,41 @@ 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 that exposes a FastCGI
+socket.  Either SQLite or PostgreSQLcan be used as the database backend
+(the latter requires a separate container).  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.
-- 
2.38.1

_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/patchew-devel