From ded54c9c48bb8ff829ec628961c0517baaf89883 Mon Sep 17 00:00:00 2001 From: Nick Daly Date: Sun, 7 Oct 2012 20:36:50 -0500 Subject: [PATCH] Created link issue. Plinth really should link clients to the right pages. --- issues/links.org | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 issues/links.org diff --git a/issues/links.org b/issues/links.org new file mode 100644 index 000000000..c95b563c5 --- /dev/null +++ b/issues/links.org @@ -0,0 +1,42 @@ +# -*- mode: org; mode: auto-fill; fill-column: 80 -*- + +#+TITLE: Make Links Portable +#+OPTIONS: d:t +#+LINK_UP: ./ +#+LINK_HOME: ../ + +* Issue + + Currently, all the links in Plinth point to 127.0.0.1/(something), and that + sucks for serving Plinth on a local network, like most use cases imply. + +* Fixes [0/1] + +** TODO Links work when accessed from remote clients. + + Investigate the following: + + : grep -nHr basehref ../* + + : grep -nHr 127.0 ../* + + #+begin_ascii + fabfile.py:40: if env.host == "localhost" or env.host=="127.0.0.1": + fabfile.py:46: if env.host == "localhost" or env.host=="127.0.0.1": + fabfile.py:102: hidden_service_config = "HiddenServiceDir %s\nHiddenServicePort 80 127.0.0.1:%d" % (tor_dir, santiago_port) + modules/installed/santiago/santiago.py:48: hidden_service_config = "HiddenServiceDir %s\nHiddenServicePort 80 127.0.0.1:%d" % (self.tor_dir, santiago_port) + plinth.py:119: server.socket_host = '127.0.0.1' + #+end_ascii + + Also, why is base_href blank in [[file:~/programs/freedombox/plinth/cfg.sample.py][cfg.sample.py]]? + +* Discussion + +* Metadata + :PROPERTIES: + :Status: Incomplete + :Priority: 0 + :Owner: Nick Daly + :Description: + :Tags: + :END: