Skip to content

Commit

Permalink
Default to '/' for frontend app location (thanks nginx) (#67)
Browse files Browse the repository at this point in the history
* build the frontend in CI

* github does the action

* bump chart version
  • Loading branch information
fuziontech authored Jun 4, 2024
1 parent c0f9524 commit 83a4376
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,5 @@ housewatch.sqlite3
.DS_Store
yarn.lock

charts/housewatch/charts/
charts/housewatch/charts/
.pnpm/
2 changes: 1 addition & 1 deletion charts/housewatch/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: housewatch
description: Open source tool for monitoring and managing ClickHouse clusters
type: application
version: 0.1.8
version: 0.1.9
appVersion: "0.1.2"
dependencies:
- name: postgresql
Expand Down
4 changes: 2 additions & 2 deletions charts/housewatch/templates/nginx-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ data:
}
location /admin {
proxy_pass http://housewatch-api:8000;
proxy_pass http://{{ include "housewatch.fullname" . }}-api:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
}
location /healthz {
proxy_pass http://housewatch-api:8000;
proxy_pass http://{{ include "housewatch.fullname" . }}-api:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Expand Down
2 changes: 1 addition & 1 deletion frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default defineConfig({
},
},
},
base: process.env.NODE_ENV === "production" ? "/webapp/" : "/",
base: "/",
build: {
outDir: "./build"
}
Expand Down

0 comments on commit 83a4376

Please sign in to comment.