diff --git a/package.json b/package.json index 4276018..f36d059 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cosmos-server", - "version": "0.1.1", + "version": "0.1.2", "description": "", "main": "test-server.js", "bugs": { diff --git a/readme.md b/readme.md index 8bc245c..f1be7e5 100644 --- a/readme.md +++ b/readme.md @@ -9,7 +9,7 @@ [![DiscordLink](https://img.shields.io/discord/1083875833824944188?label=Discord&logo=Discord&style=flat-square)](https://discord.gg/PwMWwsrwHA) ![CircleCI](https://img.shields.io/circleci/build/github/azukaar/Cosmos-Server?token=6efd010d0f82f97175f04a6acf2dae2bbcc4063c&style=flat-square) -Cosmos is a self-hosted platform for running server applications securely and with built-in privacy features. It acts as a secure gateway to your application, as well as a server manager. It aims to solve the increasingly worrying problem of vulnerable self-hosted applications and personnal servers. +Cosmos is a self-hosted platform for running server applications securely and with built-in privacy features. It acts as a secure gateway to your application, as well as a server manager. It aims to solve the increasingly worrying problem of vulnerable self-hosted applications and personal servers. ![screenshot1](./screenshot1.png) diff --git a/src/CRON.go b/src/CRON.go index a013b28..01ff921 100644 --- a/src/CRON.go +++ b/src/CRON.go @@ -41,7 +41,7 @@ func checkVersion() { myVersion := version.Version - response, err := http.Get("https://comos-technologies.com/versions/" + myVersion) + response, err := http.Get("https://cosmos-cloud.io/versions/" + myVersion) if err != nil { utils.Error("checkVersion", err) return diff --git a/src/utils/utils.go b/src/utils/utils.go index f08ec4e..bdded1c 100644 --- a/src/utils/utils.go +++ b/src/utils/utils.go @@ -95,8 +95,8 @@ func LoadBaseMainConfig(config Config){ if os.Getenv("COSMOS_HOSTNAME") != "" { MainConfig.HTTPConfig.Hostname = os.Getenv("COSMOS_HOSTNAME") } - if os.Getenv("COSMOS_GENERATE_MISSING_TLS_CERT") != "" { - MainConfig.HTTPConfig.HTTPSCertificateMode = os.Getenv("COSMOS_HTTPSCertificateMode") + if os.Getenv("COSMOS_HTTPS_MODE") != "" { + MainConfig.HTTPConfig.HTTPSCertificateMode = os.Getenv("COSMOS_HTTPS_MODE") } if os.Getenv("COSMOS_GENERATE_MISSING_AUTH_CERT") != "" { MainConfig.HTTPConfig.GenerateMissingAuthCert = os.Getenv("COSMOS_GENERATE_MISSING_AUTH_CERT") == "true"