Skip to content

Commit

Permalink
add new serverlists
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo committed Mar 20, 2020
1 parent 83dd29b commit 4ac2641
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 4 deletions.
4 changes: 4 additions & 0 deletions res/codimd_servers.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
https://md.ccc-mannheim.de/
https://md.darmstadt.ccc.de/
https://pad.c3loc.de/
https://codimd.c3d2.de/
2 changes: 2 additions & 0 deletions res/cryptpad_servers.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
https://cryptpad.mannheim.ccc.de/
https://pads.c3w.at/
1 change: 1 addition & 0 deletions res/ethercalc_servers.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://calc.aachen.ccc.de/
4 changes: 4 additions & 0 deletions res/etherpad_servers.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
https://pad.ccc-mannheim.de/
https://pad.jmt.gr/
https://pentapad.c3d2.de/
https://pads.aachen.ccc.de/
7 changes: 3 additions & 4 deletions res/pad_servers.lst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
https://pad.ccc-mannheim.de/
https://pad.jmt.gr/
https://pentapad.c3d2.de/
https://pads.aachen.ccc.de/
http://codimd.random-redirect.de/
http://cryptpad.random-redirect.de/
http://etherpad.random-redirect.de/
12 changes: 12 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ def application(env, start_response):
redirect_server = jitsi.get_random()
elif(env['HTTP_HOST'].startswith('pad')):
redirect_server = pad.get_random()
elif(env['HTTP_HOST'].startswith('codimd')):
redirect_server = codimd.get_random()
elif(env['HTTP_HOST'].startswith('cryptpad')):
redirect_server = cryptpad.get_random()
elif(env['HTTP_HOST'].startswith('etherpad')):
redirect_server = etherpad.get_random()
elif(env['HTTP_HOST'].startswith('ethercalc')):
redirect_server = ethercalc.get_random()
else:
redirect_server = 'https://github.com/tosterkamp/random-redirect/'

Expand All @@ -33,3 +41,7 @@ def renew(self):

jitsi = ServerList('jitsi_servers.lst')
pad = ServerList('pad_servers.lst')
codimd = ServerList('codimd_servers.lst')
cryptpad = ServerList('cryptpad_servers.lst')
etherpad = ServerList('etherpad_servers.lst')
ethercalc = ServerList('ethercalc_servers.lst')

0 comments on commit 4ac2641

Please sign in to comment.