From 90685484c829d98db74dfd8e1cf01ed418f3c423 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 23 Aug 2017 05:25:54 -0300 Subject: [refactor] add localhost endpoint to server tac -- Related: #8867 --- pkg/server.tac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkg') 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: -- cgit v1.2.3