This commit is contained in:
ff
2026-07-31 10:49:52 -04:00

View File

@@ -766,6 +766,16 @@ sudo cp nginx.conf /etc/nginx/sites-available/dental-app
sudo nginx -t && sudo systemctl reload nginx sudo nginx -t && sudo systemctl reload nginx
``` ```
> **If `nginx -t` fails with `could not build server_names_hash, you should increase
> server_names_hash_bucket_size: 64`:** the `local-<office>.mydentalofficemanagement.com`
> hostname is too long for nginx's default hash bucket size. Fix it in the main config (not this
> repo's `nginx.conf`) — `/etc/nginx/nginx.conf` already has a commented-out line for this inside
> the `http { }` block:
> ```sh
> sudo sed -i 's/# server_names_hash_bucket_size 64;/server_names_hash_bucket_size 128;/' /etc/nginx/nginx.conf
> sudo nginx -t && sudo systemctl reload nginx
> ```
### Step 7 — Allow the new hostname in Vite and backend CORS ### Step 7 — Allow the new hostname in Vite and backend CORS
- `apps/Frontend/vite.config.ts` → add the hostname to `server.allowedHosts` - `apps/Frontend/vite.config.ts` → add the hostname to `server.allowedHosts`