Skip to content

Commit

Permalink
Merge pull request #1314 from Chia-Network/web-build
Browse files Browse the repository at this point in the history
Build with new web-build command
  • Loading branch information
TheLastCicada authored Aug 26, 2024
2 parents 30fa20a + 28fba3f commit fa2be77
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-installers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit fa2be77

Please sign in to comment.