summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/server.tac7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/server.tac b/pkg/server.tac
index ef2cea50..1bc3dc69 100644
--- a/pkg/server.tac
+++ b/pkg/server.tac
@@ -7,6 +7,13 @@ from leap.soledad.server import entrypoint
application = service.Application('soledad-server')
+# local entrypoint
+local_description = 'tcp:2323:interface=127.0.0.1'
+local_site = server.Site(entrypoint.LocalServicesEntrypoint())
+
+local_server = strports.service(local_description, local_site)
+local_server.setServiceParent(application)
+
# public entrypoint
port = os.getenv('HTTPS_PORT', None)
if port: