diff options
author | Victor Shyba <victor1984@riseup.net> | 2017-08-23 05:25:54 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2017-09-05 11:08:47 -0300 |
commit | 90685484c829d98db74dfd8e1cf01ed418f3c423 (patch) | |
tree | 5cb70058175be25f56480b33364df3cb137b4692 /pkg | |
parent | 54f28b30c81da5f699cc90846f182377d9efb11a (diff) |
[refactor] add localhost endpoint to server tac
-- Related: #8867
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/server.tac | 7 |
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: |