diff --git a/deployment/README.md b/deployment/README.md index 6999f81..8e893cb 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -22,6 +22,12 @@ curl -fsS http://127.0.0.1:1422/ | head Configure **`PENGINE_SUBDOMAIN`** on the **Pengui** repo (Certbot + nginx vhost); see Pengui `deployment/README.md`. +If the browser warns that the certificate is for **`penguinpool.space`** (or another hostname) when you open **`https://pengine.net`**, nginx is serving a **default TLS certificate** that does not list **`pengine.net`** in **Subject Alternative Name**. Fix it on the server: + +1. Confirm DNS **`A`/`AAAA`** for `pengine.net` points at this host. +2. Obtain a certificate that **includes `pengine.net`** (e.g. Certbot: add `-d pengine.net` to the existing certificate request, or run a separate cert for `pengine.net` and point the `pengine.net` `server` block at those files). +3. Reload nginx so the `server_name pengine.net` block uses that certificate (not the pool-only cert). + ## Remove the container and pull a fresh image Use this after a new image tag is published, if the container is stuck, or you want to clear the cached local image. diff --git a/vite.config.ts b/vite.config.ts index f582596..17907ae 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -30,21 +30,21 @@ export default defineConfig(async () => { }, }, }, - server: { - port: 1420, - strictPort: true, - host: host || false, - hmr: host - ? { - protocol: "ws", - host, - port: 1421, - } - : undefined, - watch: { - ignored: ["**/src-tauri/**"], + server: { + port: 1420, + strictPort: true, + host: host || false, + hmr: host + ? { + protocol: "ws", + host, + port: 1421, + } + : undefined, + watch: { + ignored: ["**/src-tauri/**"], + }, }, - }, // Production build preview — not Vite’s default 4173 (avoids clashes e.g. with other Vite apps / tooling); adjacent to dev :1420. preview: { port: 1422,