Set only server address
This commit is contained in:
@@ -15,8 +15,7 @@ var PageBase pageBase
|
||||
var (
|
||||
ArticleRoot string
|
||||
|
||||
ServerURL string
|
||||
ServerPort string
|
||||
ServerAddress string
|
||||
|
||||
Prefix string
|
||||
|
||||
@@ -29,8 +28,7 @@ func init() {
|
||||
|
||||
ArticleRoot = os.Getenv("ARTICLE_ROOT")
|
||||
|
||||
ServerURL = os.Getenv("SERVER_URL")
|
||||
ServerPort = os.Getenv("SERVER_PORT")
|
||||
ServerAddress = os.Getenv("SERVER_ADDRESS")
|
||||
|
||||
Prefix = os.Getenv("PREFIX")
|
||||
|
||||
@@ -38,6 +36,6 @@ func init() {
|
||||
FrontendDir = os.Getenv("FRONTEND_DIR")
|
||||
|
||||
PageBase = pageBase{
|
||||
BasePath: path.Join(ServerURL, Prefix),
|
||||
BasePath: path.Join(ServerAddress, Prefix),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user