Set only server address

This commit is contained in:
2022-01-31 09:36:59 +01:00
parent 86c1bf6e86
commit fb61bf1903
3 changed files with 5 additions and 8 deletions

View File

@@ -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),
}
}