Configure host url

This commit is contained in:
Las Zenow 2016-04-24 09:05:52 -04:00
parent 6c08f284b9
commit e963d00014
2 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,8 @@
package main package main
const ( const (
PORT = "8080" HOST_URL = "xfmro77i3lixucja.onion"
PORT = "8080"
DB_IP = "127.0.0.1" DB_IP = "127.0.0.1"
DB_NAME = "trantor" DB_NAME = "trantor"

View file

@ -34,7 +34,7 @@ type Status struct {
func GetStatus(h handler) Status { func GetStatus(h handler) Status {
var s Status var s Status
s.BaseURL = "http://" + h.r.Host s.BaseURL = "http://" + HOST_URL
s.FullURL = s.BaseURL + h.r.RequestURI s.FullURL = s.BaseURL + h.r.RequestURI
s.Title = "Imperial Library of Trantor" s.Title = "Imperial Library of Trantor"
s.User = h.sess.User s.User = h.sess.User