summaryrefslogtreecommitdiff
path: root/soledad_server
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-07-25 16:39:20 -0300
committerdrebs <drebs@leap.se>2013-07-25 16:39:37 -0300
commitc76373323277a7703c9e7839a1b118519d95a8a9 (patch)
treed61fd2d3adc8c281f91fa6795a49357e72058c6b /soledad_server
parent47b755f47792aa53b8345b0ef05796ee7c7a39e6 (diff)
Make soledad server only open SSL port.
* Closes #3254
Diffstat (limited to 'soledad_server')
-rw-r--r--soledad_server/changes/bug_3254-eliminate-need-of-passing-non-ssl-port-to-twistd-in-soledad-server-initscript2
-rw-r--r--soledad_server/pkg/soledad14
2 files changed, 7 insertions, 9 deletions
diff --git a/soledad_server/changes/bug_3254-eliminate-need-of-passing-non-ssl-port-to-twistd-in-soledad-server-initscript b/soledad_server/changes/bug_3254-eliminate-need-of-passing-non-ssl-port-to-twistd-in-soledad-server-initscript
new file mode 100644
index 00000000..51ad5a2c
--- /dev/null
+++ b/soledad_server/changes/bug_3254-eliminate-need-of-passing-non-ssl-port-to-twistd-in-soledad-server-initscript
@@ -0,0 +1,2 @@
+ o A plaintext port is not opened by soledad server initscript call to twistd
+ web anymore. Closes #3254.
diff --git a/soledad_server/pkg/soledad b/soledad_server/pkg/soledad
index 1254cabe..c233731e 100644
--- a/soledad_server/pkg/soledad
+++ b/soledad_server/pkg/soledad
@@ -15,7 +15,6 @@ RUNDIR=/var/lib/soledad/
OBJ=leap.soledad_server.application
LOGFILE=/var/log/soledad.log
HTTPS_PORT=2424
-PLAIN_PORT=65534
CERT_PATH=/etc/leap/soledad-server.pem
PRIVKEY_PATH=/etc/leap/soledad-server.key
TWISTD_PATH=/usr/bin/twistd
@@ -32,14 +31,11 @@ case "$1" in
start)
echo -n "Starting soledad: twistd"
start-stop-daemon --start --quiet --exec $TWISTD_PATH -- \
- --pidfile=$PIDFILE \
- --logfile=$LOGFILE \
- web \
- --wsgi=$OBJ \
- --https=$HTTPS_PORT \
- --certificate=$CERT_PATH \
- --privkey=$PRIVKEY_PATH \
- --port=$PLAIN_PORT
+ --pidfile=$PIDFILE \
+ --logfile=$LOGFILE \
+ web \
+ --wsgi=$OBJ \
+ --port=ssl:$HTTPS_PORT:privateKey=$PRIVKEY_PATH:certKey=$CERT_PATH
echo "."
;;