infra/patchwork: systemd files and production.py settings
* systemd/patchwork-delivery*: on demand socket to take mail in a localhost
TCP socket, to allow patchwork to be in a separate container from
email.
* production.py: patchwork.settings.production file.
* pass.py: example pass.py file
diff --git a/infra/patchwork/systemd/patchwork-delivery.socket b/infra/patchwork/systemd/patchwork-delivery.socket
new file mode 100644
index 0000000..bfa6752
--- /dev/null
+++ b/infra/patchwork/systemd/patchwork-delivery.socket
@@ -0,0 +1,15 @@
+[Unit]
+Description=Patchwork unix pipe to accept list mail delivery on
+
+[Socket]
+#ListenStream=/tmp/patchwork.sock
+ListenStream=127.0.0.1:8001
+SocketUser=patchwork
+SocketGroup=patchwork
+Accept=yes
+
+#ListenFIFO=/tmp/patchwork-fifo.sock
+
+
+[Install]
+WantedBy=sockets.target
diff --git a/infra/patchwork/systemd/patchwork-delivery@.service b/infra/patchwork/systemd/patchwork-delivery@.service
new file mode 100644
index 0000000..d152b2d
--- /dev/null
+++ b/infra/patchwork/systemd/patchwork-delivery@.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Patchwork list mail socket processing script
+
+[Service]
+EnvironmentFile=/home/patchwork/patchwork.env
+ExecStart=-/home/patchwork/patchwork/patchwork/bin/parsemail.sh
+StandardInput=socket
+StandardOutput=inherit
+StandardError=journal
+User=patchwork
+Group=patchwork
+
+[Install]
+WantedBy=multi-user.target
+Also=patchwork-delivery.socket
diff --git a/infra/patchwork/systemd/patchwork.service b/infra/patchwork/systemd/patchwork.service
new file mode 100644
index 0000000..90ec4bb
--- /dev/null
+++ b/infra/patchwork/systemd/patchwork.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Patchwork Daemon
+
+[Service]
+WorkingDirectory=/home/patchwork/patchwork
+User=patchwork
+Group=patchwork
+EnvironmentFile=/home/patchwork/patchwork.env
+ExecStart=/usr/bin/python3 manage.py runserver 0.0.0.0:8000
+
+[Install]
+WantedBy=multi-user.target