From e963d000145168c0c84c9042f89ee5eab82fd4a9 Mon Sep 17 00:00:00 2001 From: Las Zenow Date: Sun, 24 Apr 2016 09:05:52 -0400 Subject: [PATCH] Configure host url --- config.go | 3 ++- template.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config.go b/config.go index 085eeb9..75f3a1a 100644 --- a/config.go +++ b/config.go @@ -1,7 +1,8 @@ package main const ( - PORT = "8080" + HOST_URL = "xfmro77i3lixucja.onion" + PORT = "8080" DB_IP = "127.0.0.1" DB_NAME = "trantor" diff --git a/template.go b/template.go index e255b22..f82a4f8 100644 --- a/template.go +++ b/template.go @@ -34,7 +34,7 @@ type Status struct { func GetStatus(h handler) Status { var s Status - s.BaseURL = "http://" + h.r.Host + s.BaseURL = "http://" + HOST_URL s.FullURL = s.BaseURL + h.r.RequestURI s.Title = "Imperial Library of Trantor" s.User = h.sess.User