From aafae6f846f533cedc4eab1857aab97395a0be31 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sat, 25 Apr 2015 16:57:10 +0300 Subject: client: drop rz_server_{host,port}, use document.location Since the client can be hidden from the server via multiple layers, be they load balancers, proxies or iptable rules, it is simpler to not have the server aware of those layers and have to inform the client of them, instead use information the client already has. --- res/templates/index.html | 2 -- 1 file changed, 2 deletions(-) (limited to 'res') diff --git a/res/templates/index.html b/res/templates/index.html index 6ae505b8..a0107906 100644 --- a/res/templates/index.html +++ b/res/templates/index.html @@ -14,8 +14,6 @@ var rz_config = { // set as a global variable 'rand_id_generator' : 'hash', 'rzdoc_cur__name': "{{ rz_config__rzdoc_cur__name|safe }}", 'rzdoc__mainpage_name': '{{ rz_config__rzdoc__mainpage_name }}', - 'rz_server_host': '{{ rz_config__hostname }}', - 'rz_server_port': '{{ rz_config__port }}', 'separator_string': ' ', }; -- cgit v1.3.1