|
|
|
@ -16,6 +16,8 @@ var GitUrl string
|
|
|
|
|
var ChatUrl string
|
|
|
|
|
var Email string
|
|
|
|
|
|
|
|
|
|
var BaseUrl string
|
|
|
|
|
|
|
|
|
|
var UserPagesBaseUrl string
|
|
|
|
|
|
|
|
|
|
var AuthServiceHost string
|
|
|
|
@ -47,6 +49,9 @@ func Load() {
|
|
|
|
|
loadEnv(&ChatUrl, "CHAT_URL", "https://chat.example.org")
|
|
|
|
|
loadEnv(&Email, "EMAIL", "mail@example.org")
|
|
|
|
|
|
|
|
|
|
// Base URL
|
|
|
|
|
loadEnv(&BaseUrl, "BASE_URL", "localhost:8080")
|
|
|
|
|
|
|
|
|
|
// Poisson
|
|
|
|
|
loadEnv(&UserPagesBaseUrl, "USER_PAGES_BASE_URL", "https://poisson.phc.dm.unipi.it/~")
|
|
|
|
|
|
|
|
|
@ -63,6 +68,8 @@ func Object() util.Map {
|
|
|
|
|
"ChatUrl": ChatUrl,
|
|
|
|
|
"Email": Email,
|
|
|
|
|
|
|
|
|
|
"BaseUrl": BaseUrl,
|
|
|
|
|
|
|
|
|
|
"UserPagesBaseUrl": UserPagesBaseUrl,
|
|
|
|
|
|
|
|
|
|
"AuthServiceHost": AuthServiceHost,
|
|
|
|
|