use hostname variable, expect it to be overrriden

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