diff --git a/.env.dev b/.env.dev index 0ff81ad..ab3d17b 100644 --- a/.env.dev +++ b/.env.dev @@ -3,8 +3,8 @@ MODE=development HOST=localhost:8000 # Separate services -GIT_URL=https://git.example.org -FORUM_URL=https://forum.example.org +GIT_URL=https://git.phc.dm.unipi.it +CHAT_URL=https://chat.phc.dm.unipi.it # Other EMAIL=mail@example.org diff --git a/README.md b/README.md index 1340d10..39ed93d 100644 --- a/README.md +++ b/README.md @@ -39,4 +39,4 @@ $ find . -type f -name '*.go' | entr -r go run . Rappresentano link ad altri servizi forniti, è comodo impostarli così in modo da poter anche provare tutto insieme in locale su varie porte (e poi in produzione i vari url diventano link a sotto-domini del sito principale). - Per ora ci sono solo `GIT_URL` e `FORUM_URL`. + Per ora ci sono solo `GIT_URL` e `CHAT_URL`. diff --git a/config/config.go b/config/config.go index 792568b..3dd86e5 100644 --- a/config/config.go +++ b/config/config.go @@ -13,7 +13,7 @@ var Mode string var Host string var GitUrl string -var ForumUrl string +var ChatUrl string var Email string func loadEnv(target *string, name, defaultValue string) { @@ -34,16 +34,16 @@ func Load() { loadEnv(&Mode, "MODE", "production") loadEnv(&Host, "HOST", "localhost:8080") loadEnv(&GitUrl, "GIT_URL", "https://git.example.org") - loadEnv(&ForumUrl, "FORUM_URL", "https://forum.example.org") + loadEnv(&ChatUrl, "CHAT_URL", "https://chat.example.org") loadEnv(&Email, "EMAIL", "mail@example.org") } func Object() util.H { return util.H{ - "Mode": Mode, - "Host": Host, - "GitUrl": GitUrl, - "ForumUrl": ForumUrl, - "Email": Email, + "Mode": Mode, + "Host": Host, + "GitUrl": GitUrl, + "ChatUrl": ChatUrl, + "Email": Email, } } diff --git a/views/link.html b/views/link.html index e9ce6b4..b2b07fd 100644 --- a/views/link.html +++ b/views/link.html @@ -51,7 +51,7 @@