use hostname variable, expect it to be overrriden

parent b1b887ee
......@@ -16,8 +16,7 @@
#
# vars are namespaced with the module name.
#
neo4j_role_name: neo4j
neo4j_server_name: "coursegraph.edx.org"
NEO4J_SERVER_NAME: "localhost"
neo4j_gpg_key_url: https://debian.neo4j.org/neotechnology.gpg.key
neo4j_apt_repository: "deb http://debian.neo4j.org/repo stable/"
......
......@@ -10,8 +10,7 @@
{% endif %}
server {
# server_name {{ neo4j_server_name }};
server_name localhost;
server_name {{ NEO4J_SERVER_NAME }};
{% if NGINX_ENABLE_SSL %}
......@@ -22,7 +21,6 @@ server {
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
{% else %}
# listen {{ neo4j_http_port }} {{ default_site }};
listen 80 {{ default_site }};
{% endif %}
......@@ -38,7 +36,7 @@ server {
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://127.0.0.1:7473;
proxy_pass http://127.0.0.1:{{ neo4j_http_port }};
}
# Forward to HTTPS if we're an HTTP request...
......
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