Update the beginning text

This commit is contained in:
Nico Schottelius 2019-12-31 14:31:45 +01:00
parent d1fdde72a0
commit 33d9d72554

View file

@ -1,3 +1,5 @@
#!/usr/bin/env python3
from flask import Flask, request, redirect, url_for from flask import Flask, request, redirect, url_for
from werkzeug.middleware.proxy_fix import ProxyFix from werkzeug.middleware.proxy_fix import ProxyFix
import os import os
@ -29,13 +31,23 @@ Obviously, your name and IPv6 address will be publicly recorded.
<p>You are player: {player} <p>You are player: {player}
<h2>Objective</h2>
The objective of this game is to get your hands dirty with IPv6.
To play it, you only need an IPv6 connection and a spare /64 IPv6
network that you can freely configure.
<h2>Register</h2> <h2>Register</h2>
<form action="/" method=post> <form action="/" method=post>
Your name: <input type="text" name="name"> Your name: <input type="text" name="name">
<input type="submit" value="Submit"> <input type="submit" value="Submit">
</form> </form>
<p>Afterwards <a href="/net">register your network</a> <p>Afterwards
and then <a href="/check_addr">make your random ip reachable</a>. <ul>
<li><a href="/net">register your network</a>,
<li><a href="/check_addr">make a random ip in your network reachable</a>
<li>Setup a basic webserver (http)
<li>Setup a webserver with https (using <a href="https://has-a.name">has-a.name</a>)
</ul>
<h2>Interested in playing IPv6 games are... </h2> <h2>Interested in playing IPv6 games are... </h2>
@ -43,10 +55,12 @@ and then <a href="/check_addr">make your random ip reachable</a>.
{player_list} {player_list}
</ul> </ul>
<h2>Open Source</h2> <h2>Open Source @ IPv6Onlyhosting</h2>
As usual this project is open source and As usual this project is open source and
you can find the source code on you can find the source code on
<a href="https://code.ungleich.ch/nico/who-plays-ipv6-games">code.ungleich.ch</a>. <a href="https://code.ungleich.ch/nico/who-plays-ipv6-games">code.ungleich.ch</a>.
This website is running on the <a href="https://IPv6OnlyHosting.com">IPv6OnlyHosting.com</a> infrastructure.
</body> </body>
</html> </html>
""" """
@ -319,4 +333,4 @@ def main():
if __name__ == '__main__': if __name__ == '__main__':
if not os.path.isdir(DB_DIR): if not os.path.isdir(DB_DIR):
os.mkdir(DB_DIR) os.mkdir(DB_DIR)
app.run(host="::", debug=True) app.run(host="::1", debug=False)