From f08d50b3260856bb45d8c422ef64d35dacbb7788 Mon Sep 17 00:00:00 2001 From: Zachary Brown Date: Mon, 26 Aug 2024 09:28:20 -0700 Subject: [PATCH 1/3] ci: use the new web-build command in the ci --- .github/workflows/build-installers.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-installers.yaml b/.github/workflows/build-installers.yaml index 3d00c4c9..2b89893c 100644 --- a/.github/workflows/build-installers.yaml +++ b/.github/workflows/build-installers.yaml @@ -174,7 +174,7 @@ jobs: run: | node --version npm install - npm run build + npm run web-build - name: Create .tar.gz of the web build run: tar -cvzf cadt-ui-web-build.tar.gz build From a446ddc69de35df5e04540e09c014805e3b66f13 Mon Sep 17 00:00:00 2001 From: Zachary Brown Date: Mon, 26 Aug 2024 10:14:07 -0700 Subject: [PATCH 2/3] docs: sample Nginx config in README --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index ce5d1b45..ffe573f0 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,32 @@ To host the UI on the web, use the [web-build.tar.gz file from the releases page To make the CADT UI web application automatically connect to a CADT host by default, copy the `config.example.json` file to `config.json` and change the `apiHost` to be the CADT API hostname, including http:// and the path (everything before the `/v1` part of the API URL) +#### Sample Nginx Config + +``` +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + # Path on disk to CADT UI files + root /var/www/cadt-ui/build; + + # Domain name where this site will be served from + server_name cadt-ui-example-config.com; + + # SSL certificates with full path + ssl_certificate /path/to/ssl/certificate/fullchain.pem; + ssl_certificate_key /path/to/ssl/certificate/privkey.pem; + + # Optional, but recommended + resolver 1.1.1.1; + + try_files $uri /index.html; +} + +``` + + ### From Source *It is recommended to use the pre-built application from the releases page or the apt repo and only build from source if contributing code to the application* From 28fba3f45e0c7feb549884e204ebe9ea57d22e1f Mon Sep 17 00:00:00 2001 From: Zachary Brown Date: Mon, 26 Aug 2024 10:14:35 -0700 Subject: [PATCH 3/3] chore: version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f4b94cc3..52fdca6e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cadt-ui", "private": true, - "version": "2.0.1", + "version": "2.0.2", "type": "module", "main": "build/main.js", "engineStrict": true,