diff --git a/rd_ui/app/index.html b/rd_ui/app/index.html
index 26d91ebc69..281739b798 100644
--- a/rd_ui/app/index.html
+++ b/rd_ui/app/index.html
@@ -4,7 +4,7 @@
-
+
@@ -29,7 +29,7 @@
- re:dash
+ {{name}}
{% raw %}
diff --git a/rd_ui/app/login.html b/rd_ui/app/login.html
index a5271f9d4d..8088cdfc34 100644
--- a/rd_ui/app/login.html
+++ b/rd_ui/app/login.html
@@ -4,7 +4,7 @@
-
re:dash Login
+
{{name}} Login
@@ -26,7 +26,7 @@
-
re:dash
+
{{name}}
diff --git a/redash/controllers.py b/redash/controllers.py
index 2c61243f87..21e76edc42 100644
--- a/redash/controllers.py
+++ b/redash/controllers.py
@@ -50,7 +50,8 @@ def index(**kwargs):
'permissions': current_user.permissions
}
- return render_template("index.html", user=json.dumps(user), analytics=settings.ANALYTICS)
+ return render_template("index.html", user=json.dumps(user), name=settings.NAME,
+ analytics=settings.ANALYTICS)
@app.route('/login', methods=['GET', 'POST'])
@@ -70,6 +71,7 @@ def login():
return redirect(request.args.get('next') or '/')
return render_template("login.html",
+ name=settings.NAME,
analytics=settings.ANALYTICS,
next=request.args.get('next'),
username=request.form.get('username', ''),
diff --git a/redash/settings.py b/redash/settings.py
index 09dd127f6a..b454afa736 100644
--- a/redash/settings.py
+++ b/redash/settings.py
@@ -44,6 +44,8 @@ def parse_boolean(str):
STATSD_PORT = int(os.environ.get('REDASH_STATSD_PORT', "8125"))
STATSD_PREFIX = os.environ.get('REDASH_STATSD_PREFIX', "redash")
+NAME = os.environ.get('REDASH_NAME', 're:dash')
+
# "pg", "graphite" or "mysql"
CONNECTION_ADAPTER = os.environ.get("REDASH_CONNECTION_ADAPTER", "pg")
# Connection string for the database that is used to run queries against. Examples: