From 7a79b62c34b04b53e435143ecfc11a379ba4c57b Mon Sep 17 00:00:00 2001 From: Yann Stepienik Date: Sun, 31 Mar 2024 00:47:10 +0000 Subject: [PATCH] [release] v0.15.3 --- changelog.md | 7 +++++++ client/src/pages/dashboard/resourceDashboard.jsx | 2 +- client/src/pages/newInstall/newInstall.jsx | 3 ++- .../src/pages/servapps/containers/docker-compose.jsx | 11 +++++++++++ package.json | 2 +- readme.md | 4 +--- 6 files changed, 23 insertions(+), 6 deletions(-) diff --git a/changelog.md b/changelog.md index 8172dc1..b0f489d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,10 @@ +## Version 0.15.3 + - Add support for sysctls as array + - Fix temperature appearing in the disk usage widget + +## Version 0.15.2 + - Fix an issue with DB creations + ## Version 0.15.1 - Add a toggle for search engine indexing - Fix an issue with the TCP proxy and ports already bound diff --git a/client/src/pages/dashboard/resourceDashboard.jsx b/client/src/pages/dashboard/resourceDashboard.jsx index 7fbb857..8754f49 100644 --- a/client/src/pages/dashboard/resourceDashboard.jsx +++ b/client/src/pages/dashboard/resourceDashboard.jsx @@ -38,7 +38,7 @@ const ResourceDashboard = ({ xAxis, zoom, setZoom, slot, metrics }) => { }} data={ - Object.keys(metrics).filter((key) => key.startsWith("cosmos.system.disk")).map((key) => metrics[key]) + Object.keys(metrics).filter((key) => key.startsWith("cosmos.system.disk.")).map((key) => metrics[key]) } /> diff --git a/client/src/pages/newInstall/newInstall.jsx b/client/src/pages/newInstall/newInstall.jsx index a0d04b1..682c99f 100644 --- a/client/src/pages/newInstall/newInstall.jsx +++ b/client/src/pages/newInstall/newInstall.jsx @@ -185,7 +185,7 @@ const NewInstall = () => { setSubmitting(true); setPullRequest(() => ((cb) => { - API.newInstall({ + return API.newInstall({ step: "2", MongoDBMode: values.DBMode, MongoDB: values.MongoDB, @@ -213,6 +213,7 @@ const NewInstall = () => { formik.setStatus({ success: false }); formik.setErrors({ submit: error.message }); formik.setSubmitting(false); + console.error(error) pullRequestOnSuccess(); }} OnClose={() => { diff --git a/client/src/pages/servapps/containers/docker-compose.jsx b/client/src/pages/servapps/containers/docker-compose.jsx index 9d9fade..bf72f01 100644 --- a/client/src/pages/servapps/containers/docker-compose.jsx +++ b/client/src/pages/servapps/containers/docker-compose.jsx @@ -182,6 +182,17 @@ const convertDockerCompose = (config, serviceName, dockerCompose, setYmlError) = } } + // convert Sysctls array to map + if (doc.services[key].sysctls) { + if (Array.isArray(doc.services[key].sysctls)) { + let sysctls = {}; + doc.services[key].sysctls.forEach((sysctl) => { + sysctls['' + sysctl] = ''; + }); + doc.services[key].sysctls = sysctls; + } + } + // convert network if (doc.services[key].networks) { if (Array.isArray(doc.services[key].networks)) { diff --git a/package.json b/package.json index f8b0792..3e442b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cosmos-server", - "version": "0.15.1", + "version": "0.15.3", "description": "", "main": "test-server.js", "bugs": { diff --git a/readme.md b/readme.md index 35506d5..1d5b64c 100644 --- a/readme.md +++ b/readme.md @@ -136,8 +136,6 @@ Most tools currently used to self-host **not specifically designed to be secure If you have any further questions, feel free to join our [Discord](https://discord.gg/PwMWwsrwHA)! -**Disclaimer**: _Cosmos is still in early Alpha stage, please be careful when you use it. It is not (yet, at least ;p) a replacement for proper control and mindfulness of your own security._ - # Let's Encrypt Cosmos Server can automatically generate and renews HTTPS certificates for your applications using Let's Encrypt. It is compatible with wildcard certificates, using the DNS challenge. In order to do it, you need to add `DNSChallengeProvider` to the `HTTPConfig` in your config (or in the UI). And then add the proper API token via environment variables. To know what providers are supported and what environment variable they need, please refer to [this page](https://go-acme.github.io/lego/dns/#dns-providers). @@ -164,7 +162,7 @@ Installation is simple using Docker: docker run -d --network host --privileged --name cosmos-server -h cosmos-server --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /:/mnt/host -v /var/lib/cosmos:/config azukaar/cosmos-server:latest ``` -**DO NOT USE DOCKER-COMPOSE, UNRAID TEMPLATES, CASAOS OR PORTAINER STACKS TO INSTALL COSMOS. IT WILL NOT WORK PROPERLY. JUST RUN THE `DOCKER RUN` COMMAND!** +**DO NOT USE UNRAID TEMPLATES, CASAOS OR PORTAINER STACKS TO INSTALL COSMOS. IT WILL NOT WORK PROPERLY. JUST RUN THE `DOCKER RUN` COMMAND!**. You can use Docker-Compose but if you are on mac or windows (so no host mode) without a domain, that will prevent Cosmos from binding ports to itself! (preventing ip:port from working properly) **IF YOU ARE USING WINDOWS OR MAC OS YOU CANNOT USE THE HOST MODE OF DOCKER. Please replace `--network host` with `-p 80:80 -p 443:443 -p 4242:4242/udp`**