server configured to use tor
This commit is contained in:
parent
297b18a7b9
commit
820fa78b58
15
server.py
15
server.py
|
@ -1,6 +1,15 @@
|
|||
from jetforce import GeminiServer
|
||||
from jetforce.app.composite import CompositeApplication
|
||||
from app import app
|
||||
|
||||
# despite being configured for ipv6 only, this works on both ipv6 and ipv4
|
||||
server = GeminiServer(app,host="::",hostname="cosmic.voyage",certfile="/etc/gemini/cosmic.voyage.crt",keyfile="/etc/gemini/cosmic.voyage.key")
|
||||
server.run()
|
||||
composite_app = CompositeApplication(
|
||||
{
|
||||
"cosmic.voyage": app,
|
||||
"cosmiclbou7ypgww4lcs4an3z6otqoevqk6q5jcxml7v7geqml7dlyad.onion": app,
|
||||
None: app,
|
||||
}
|
||||
)
|
||||
|
||||
if __name__ == "__main__":
|
||||
server = GeminiServer(composite_app, host="::", certfile="/etc/gemini/cosmic.voyage.crt", keyfile="/etc/gemini/cosmic.voyage.key")
|
||||
server.run()
|
||||
|
|
Loading…
Reference in New Issue