Commit 54741894 by Ned Batchelder

Fix booleans so Mongo only listens on localhost

parent 911ce6a3
...@@ -29,7 +29,7 @@ MONGO_USERS: ...@@ -29,7 +29,7 @@ MONGO_USERS:
database: edxapp database: edxapp
roles: readWrite roles: readWrite
MONGO_CLUSTERED: !!null MONGO_CLUSTERED: false
MONGO_BIND_IP: 127.0.0.1 MONGO_BIND_IP: 127.0.0.1
## ##
......
...@@ -12,7 +12,7 @@ logappend={{ mongo_logappend }} ...@@ -12,7 +12,7 @@ logappend={{ mongo_logappend }}
{# Bind to all ips(default) if in clustered mode, {# Bind to all ips(default) if in clustered mode,
otherwise only to the specified local ip. otherwise only to the specified local ip.
#} #}
{% if MONGO_CLUSTERED is not defined %} {% if not MONGO_CLUSTERED %}
bind_ip = {{ MONGO_BIND_IP }} bind_ip = {{ MONGO_BIND_IP }}
{% endif %} {% endif %}
......
...@@ -39,7 +39,7 @@ MONGO_USERS: ...@@ -39,7 +39,7 @@ MONGO_USERS:
database: edxapp database: edxapp
roles: readWrite roles: readWrite
MONGO_CLUSTERED: !!null MONGO_CLUSTERED: false
MONGO_BIND_IP: 127.0.0.1 MONGO_BIND_IP: 127.0.0.1
MONGO_REPL_SET: "rs0" MONGO_REPL_SET: "rs0"
......
...@@ -38,7 +38,7 @@ security: ...@@ -38,7 +38,7 @@ security:
{% endif %} {% endif %}
net: net:
{% if MONGO_CLUSTERED is not defined %} {% if not MONGO_CLUSTERED %}
{# Bind to all ips(default) if in clustered mode, {# Bind to all ips(default) if in clustered mode,
otherwise only to the specified local ip. #} otherwise only to the specified local ip. #}
bindIp: {{ MONGO_BIND_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