Skip to content

Commit

Permalink
Merge branch 'main' into chore/simpler-deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored Nov 11, 2023
2 parents b477c0b + 29b8f2c commit 299bda4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
10 changes: 10 additions & 0 deletions deployment/k3s/templates/deployments/maps/maps-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,13 @@ spec:
port: tileserver
failureThreshold: 6
periodSeconds: 10
- name: tileserver-src # serve tileserver-vol at /maps/vol/...
image: nginx:1.25
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
name: http
volumeMounts:
- name: tileserver-vol
mountPath: /usr/share/nginx/html/maps/vol
readOnly: true
5 changes: 5 additions & 0 deletions deployment/k3s/templates/networking/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ spec:
services:
- name: api-svc
port: 3003
- kind: Rule
match: Host(`{{ $.Values.url }}`) && PathPrefix(`/maps/vol/`)
services:
- name: maps-svc
port: 7771
- kind: Rule
match: Host(`{{ $.Values.url }}`) && PathPrefix(`/maps/`)
services:
Expand Down
3 changes: 3 additions & 0 deletions deployment/k3s/templates/networking/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ spec:
- name: http
port: 3001
targetPort: 8080
- name: src
port: 7771
targetPort: 80
---
apiVersion: v1
kind: Service
Expand Down
7 changes: 0 additions & 7 deletions webclient/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,7 @@ import path from "path";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import pluginRewriteAll from "vite-plugin-rewrite-all";
import { sentryVitePlugin } from "@sentry/vite-plugin";

// https://vitejs.dev/config/
let commit_message = process.env.GIT_COMMIT_MESSAGE || "development";
commit_message = commit_message
.replaceAll(/[^a-z0-9 ]+/gi, "_")
.replaceAll(/_$/g, "")
.trim();
export default defineConfig({
envDir: path.resolve(__dirname, "./env"),
appType: "spa",
Expand Down

0 comments on commit 299bda4

Please sign in to comment.