Files
Mdeical_Sur_Report/.env.example
admin b346b7e194 Add HTTPS demo entry for microphone access
- Add a self-signed HTTPS Nginx entrypoint on Docker port 4443 so browser microphone APIs can run in demo mode.

- Keep the existing HTTP port 4002 unchanged while exposing container port 443 and generating the demo certificate during image build.

- Update CORS defaults and Compose environment for the HTTPS frontend origin.

- Clarify the report editor microphone message with localhost, HTTPS, and browser trusted-origin demo options.

- Document the browser HTTP microphone limitation, HTTPS demo URL, and Chrome/Edge insecure-origin workaround in README and docs.
2026-05-02 03:34:31 +08:00

11 lines
428 B
Plaintext

# Backend API development defaults.
API_PORT=3100
API_BODY_LIMIT="100mb"
CORS_ORIGIN="http://localhost:3001,http://localhost:4002,https://localhost:4443"
DATABASE_URL="postgresql://surclaw:surclaw_dev_password@localhost:5433/surclaw?schema=public"
SESSION_SECRET="change-me-in-production"
SESSION_COOKIE_SECURE="false"
FILE_STORAGE_DIR="./uploads"
VITE_API_PROXY_TARGET="http://localhost:3100"
VITE_ENABLE_LOCAL_FALLBACK="true"