Introduction
Introduction Statistics Contact Development Disclaimer Help
README - twitch-go - twitch.tv web application in Go
git clone git://git.codemadness.org/twitch-go
Log
Files
Refs
README
LICENSE
---
README (1532B)
---
1 Twitch-go - twitch.tv web application in Go
2 ===========================================
3
4 This is a web application written in Go using the Twitch.tv API to view …
5
6 The web interface doesn't use any javascript or cookies and is pretty si…
7 It is even usable with the links browser.
8
9 It uses some non-public API functionality to get a view "token" and play…
10 so you can view streams with most video players. For example the excelle…
11 mpv: http://mpv.io/ .
12
13 For me it was one of the first applications I wrote to learn the languag…
14
15 See the LICENSE file for license information, feel free to contact me ab…
16 licensing or to report bugs at hiltjo AT codemadness DOT org .
17
18
19 Install as OpenBSD daemon:
20 --------------------------
21
22 - Make a user "_twitch", install the twitch binary to /usr/local/sbin.
23 - Make a file /etc/rc.d/twitch, see rc_twitch example file.
24 - Make sure to set your Twitch Client-ID token in this file.
25 - Start the daemon:
26 # rcctl start twitch
27
28
29 Forward (reverse-proxy) using nginx:
30 ------------------------------------
31
32 - In the OpenBSD daemon example above it will use a UNIX domain socket to
33 communicate with the web server at /var/www/domains/twitch.codemadness…
34 See the -t and -l option to change the listen type and address.
35 - In /etc/nginx/nginx.conf (or the location for your sites) add:
36
37 server {
38 listen 80;
39 server_name twitch.codemadness.org twitch.codemadness.nl;
40
41 location / {
42 proxy_pass "http://unix:/domains/twitch.codemadn…
43 }
44 }
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.