Configure host url
This commit is contained in:
parent
6c08f284b9
commit
e963d00014
2 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
package main
|
||||
|
||||
const (
|
||||
PORT = "8080"
|
||||
HOST_URL = "xfmro77i3lixucja.onion"
|
||||
PORT = "8080"
|
||||
|
||||
DB_IP = "127.0.0.1"
|
||||
DB_NAME = "trantor"
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue