Skip to content
This repository was archived by the owner on Feb 2, 2020. It is now read-only.

Commit 3a83ce9

Browse files
author
RAnders00
committed
Add more detail about the systemd file
1 parent b756701 commit 3a83ce9

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@ You can also set a different host and address to have the webserver listen on.
6262
# run as www-data for security reasons!
6363
sudo -u www-data ./bin/twitch-api-v3-proxy
6464

65+
## systemd service file
66+
67+
Example systemd is provided in the repo as `twitch-api-v3-proxy.service`.
68+
69+
Install the service:
70+
71+
sudo wget "https://raw.githubusercontent.com/zwb3/twitch-api-v3-proxy/master/twitch-api-v3-proxy.service" \
72+
-O "/etc/systemd/system/twitch-api-v3-proxy.service"
73+
sudo systemctl daemon-reload
74+
sudo systemctl enable twitch-api-v3-proxy
75+
sudo systemctl start twitch-api-v3-proxy
76+
# check the status
77+
sudo systemctl status twitch-api-v3-proxy
78+
6579
## Usage with pajbot1
6680

6781
If you are planning on using this proxy service with pajbot1,
@@ -112,10 +126,6 @@ have to patch these differences in your application!)
112126
`rootObject["preview"]` is different, use `rootObject["preview"]["medium"]`
113127
to get the original behaviour.
114128

115-
## systemd service filem
116-
117-
Example systemd is provided in the repo as `apiproxy.service`.
118-
119129
## How it works
120130

121131
Following is an overview of how the proxy code works:

0 commit comments

Comments
 (0)