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