diff --git a/.env.example b/.env.example index fc13357..ea53378 100644 --- a/.env.example +++ b/.env.example @@ -11,6 +11,12 @@ # instance never emits mail from a domain that isn't yours. SELF_HOSTED=true +# Hide the Subscription/billing UI (nav item + pricing cards) and bounce #/billing to +# the dashboard. Opt-in; default off (billing shown). For instances that bill customers +# externally and don't sell plans through the app. UI-only — does not change SELF_HOSTED +# or disable any /api/subscription endpoints. +HIDE_BILLING=true + # Close public self-service registration — for instances where all accounts are # provisioned by your team (admin "Add user" / invites). When true, the public # signup route is blocked (OAuth auto-signup with it) AND the login page hides diff --git a/README.md b/README.md index 2b11264..ae9a341 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,7 @@ Schema migrations run automatically on first boot — no manual migration comman | `HTTPS_PORT` | HTTPS port (used when SSL certs are present) | `3443` | | `NODE_ENV` | Runtime env (`production` enables Express production optimizations + stricter error handling) | _(none)_ | | `SELF_HOSTED` | First user gets all features unlocked | `false` | +| `HIDE_BILLING` | Hide the Subscription nav item + billing view; `#/billing` redirects to the dashboard (UI-only, opt-in) | `false` | | `DISABLE_REGISTRATION` | Block new account creation (including OAuth auto-signup). First-user setup on an empty DB is still allowed. | `false` | | `DISABLE_HOMEPAGE` | Redirect `/` to `/app` instead of serving the marketing landing page. For internal-only self-hosted deployments. | `false` | | `APP_URL` | Your public URL (used for Stripe callbacks and invite-accept URLs in emailed invites) | _(none)_ | diff --git a/frontend/index.html b/frontend/index.html index cec2974..89c14f9 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -132,7 +132,7 @@ Settings -