Commit 35219863 by Ned Batchelder

Fix booleans so Mongo only listens on localhost

(cherry picked from commit 54741894)
parent 09fd0368
......@@ -29,7 +29,7 @@ MONGO_USERS:
database: edxapp
roles: readWrite
MONGO_CLUSTERED: !!null
MONGO_CLUSTERED: false
MONGO_BIND_IP: 127.0.0.1
##
......
......@@ -12,7 +12,7 @@ logappend={{ mongo_logappend }}
{# Bind to all ips(default) if in clustered mode,
otherwise only to the specified local ip.
#}
{% if MONGO_CLUSTERED is not defined %}
{% if not MONGO_CLUSTERED %}
bind_ip = {{ MONGO_BIND_IP }}
{% endif %}
......
......@@ -39,7 +39,7 @@ MONGO_USERS:
database: edxapp
roles: readWrite
MONGO_CLUSTERED: !!null
MONGO_CLUSTERED: false
MONGO_BIND_IP: 127.0.0.1
MONGO_REPL_SET: "rs0"
......
......@@ -38,7 +38,7 @@ security:
{% endif %}
net:
{% if MONGO_CLUSTERED is not defined %}
{% if not MONGO_CLUSTERED %}
{# Bind to all ips(default) if in clustered mode,
otherwise only to the specified local ip. #}
bindIp: {{ MONGO_BIND_IP }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment