mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 23:01:29 +00:00
Update agents.md and example env file
This commit is contained in:
@@ -78,6 +78,16 @@ APP_TIMEZONE=UTC
|
||||
APP_URL=
|
||||
# Passkey RP ID (domain only, no scheme/path)
|
||||
PASSKEY_RELYING_PARTY_ID=
|
||||
# Passkey authenticator selection (controls which authenticators the browser offers).
|
||||
# Leave PASSKEY_AUTHENTICATOR_ATTACHMENT empty for "no preference" so Windows Hello,
|
||||
# platform biometrics, phones (hybrid/QR) AND FIDO2 security keys all appear in the
|
||||
# browser picker. Set to "platform" or "cross-platform" to restrict.
|
||||
PASSKEY_AUTHENTICATOR_ATTACHMENT=
|
||||
# residentKey: preferred|required|discouraged. "preferred" is required for Windows
|
||||
# domain-joined / managed machines where "required" can suppress Windows Hello.
|
||||
PASSKEY_RESIDENT_KEY=preferred
|
||||
# userVerification: preferred|required|discouraged
|
||||
PASSKEY_USER_VERIFICATION=preferred
|
||||
|
||||
# Trusted proxies / Cloudflare
|
||||
# Comma-separated list of additional proxies to trust alongside Cloudflare.
|
||||
|
||||
@@ -33,7 +33,7 @@ NNTP → NNTPService → BinariesRunner → ReleaseCreationService → ReleasePr
|
||||
| **Observer** | `app/Observers/`, `AppServiceProvider` | `ReleaseObserver`, `MovieInfoObserver`, `RolePromotionObserver` |
|
||||
| **View Composer** | `app/View/Composers/`, `AppServiceProvider` | `GlobalDataComposer` shared across `layouts.*` and `admin.*` |
|
||||
| **Status Probe** | `app/Services/StatusProbes/` | `ServiceProbeRegistry` aggregates `DatabaseProbe`, `DiskProbe`, `NntpProbe`, `QueueProbe`, `RedisProbe`, `SearchProbe` for `StatusPageController` (`/status`) and `DegradeWhenRedisUnreachable` middleware; tune via `config/status-probes.php` |
|
||||
| **Passkey** | `app/Actions/Passkeys/`, `app/Http/Controllers/Auth/Passkey*` | Spatie Laravel Passkeys; ceremony actions (`GeneratePasskeyRegisterOptionsAction`, `FindPasskeyToAuthenticateAction`) wire into routes `passkeys.*` in `routes/web.php` |
|
||||
| **Passkey** | `app/Actions/Passkeys/`, `app/Http/Controllers/Auth/Passkey*` | Spatie Laravel Passkeys; ceremony actions (`GeneratePasskeyRegisterOptionsAction`, `FindPasskeyToAuthenticateAction`) wire into routes `passkeys.*` in `routes/web.php`. `GeneratePasskeyRegisterOptionsAction` overrides `authenticatorSelection()` (defaults: attachment=null, `residentKey=preferred`, `userVerification=preferred`) and injects WebAuthn L3 `hints` + `credProps` extension so Windows Hello / Touch ID / phone-via-QR / FIDO2 keys all appear in the browser picker on Windows domain machines. Tunable via `PASSKEY_AUTHENTICATOR_ATTACHMENT`, `PASSKEY_RESIDENT_KEY`, `PASSKEY_USER_VERIFICATION`, `PASSKEY_RELYING_PARTY_ID` (see `config/passkeys.php`) |
|
||||
|
||||
## Tmux Processing Engine
|
||||
|
||||
@@ -85,6 +85,7 @@ PHPUnit only (no Pest). Create tests: `php artisan make:test --phpunit {name}`
|
||||
### Config
|
||||
- App configs: `config/nntmux*.php`, `config/tmux.php`, `config/search.php`
|
||||
- Never `env()` outside config - use `config('key')`
|
||||
- **Whenever you add or rename an `env()` key — in any file, whether under `config/*.php` or anywhere else in the codebase — you MUST also add it (with a sensible default and a short comment) to `.env.example`.** Treat any new env setting without the matching `.env.example` entry as an incomplete task.
|
||||
- Runtime settings: `Settings::settingValue()`
|
||||
- Laravel 13 route/middleware wiring lives in `bootstrap/app.php`; use that file when adding route groups, aliases, or middleware (for example the `/rss` mount)
|
||||
- Custom global middleware in `app/Http/Middleware/`: `DegradeWhenRedisUnreachable` (prepended; short-circuits requests when Redis is down via `StatusProbes`), `BlockAbusiveServices` (blocks AIOStreams, Oracle Cloud, UsenetStreamer, Cloudflare WARP), `NoCacheForAuthenticatedUsers` (CDN cache busting), `ContentSecurityPolicy`, `EnforceSessionToken`, `TrustedDevice2FAMiddleware`
|
||||
|
||||
Reference in New Issue
Block a user