From db9597c9d9824b60ae127a6a957bd0e90a4c9847 Mon Sep 17 00:00:00 2001 From: kaniini Date: Sun, 18 Nov 2018 18:36:03 +0000 Subject: [PATCH] add caddyfile and systemd service --- installation/relay.caddy | 6 ++++++ installation/relay.service | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 installation/relay.caddy create mode 100644 installation/relay.service diff --git a/installation/relay.caddy b/installation/relay.caddy new file mode 100644 index 0000000..8cd9b28 --- /dev/null +++ b/installation/relay.caddy @@ -0,0 +1,6 @@ +relay.example.org { + gzip + proxy / 127.0.0.1:8080 { + transparent + } +} diff --git a/installation/relay.service b/installation/relay.service new file mode 100644 index 0000000..10ae29a --- /dev/null +++ b/installation/relay.service @@ -0,0 +1,9 @@ +[Unit] +Description=ActivityPub Relay + +[Service] +WorkingDirectory=/home/relay/relay +ExecStart=/usr/bin/python3 -m relay + +[Install] +WantedBy=multi-user.target