Commit Graph

138 Commits

Author SHA1 Message Date
Buster Neece 17a4329d26
Set new mezzio-session-cache autoGenerate flag to false to prevent over-regeneration of sessions. 2024-05-15 09:54:38 -05:00
Buster Neece f9a888dfb5
Remove HighAvailability and DB-level cache. 2024-05-11 07:39:26 -05:00
Buster Neece 1c290a9d05
Implement common rate limit on public downloads of media. 2024-04-28 14:21:24 -05:00
Buster Neece b1662a4757
Wire up `is_enabled` functionality for public podcast pages. 2024-04-25 12:47:26 -05:00
Buster Neece 1c9d9fb5f7
Simplify and clean up exception handling. 2024-01-25 19:28:57 -06:00
Buster Neece f379464937
Podcast controller overhaul:
- Make public-facing podcast API endpoints separate from the CRUD API used by station operators
 - Make Podcast a request attribute (like stations) to simplify several controllers
  - Move API generation for podcasts and episodes into an ApiGenerator class.
2024-01-25 16:54:31 -06:00
Buster Neece 85f89d13ba
Correct docs on Station middleware. 2024-01-25 16:52:27 -06:00
Buster Neece 222676e45a
Public static asset cache overhaul:
- Make all public static assets (album art, streamer art, podcast/episode art, etc) serve with no sessions or other user-specific information
 - Make "timestamp" an explicit URL parameter and avoid weird parsing of IDs mixed with timestamps
 - Make static caching a universal middleware for uniform results across controllers
 - Update public art URL paths to reference station short names instead of numeric IDs
2023-12-28 14:07:55 -06:00
Buster Neece c90b217e73
Fixes #6804 -- Clean up exceptions:
- Make more exceptions translated
 - Consolidate duplicate exception classes
 - Make public-facing exceptions friendlier (don't show "Exception on File LXX" except in console log)
2023-12-17 10:33:17 -06:00
Buster Neece 9fe90b1d3c
Merge commit '8ea5b1b85e9477cd6f1bbff475839b4e88986be5' 2023-12-04 00:48:40 -06:00
Buster Neece cf169b423c
Merge commit 'bcf7d575ac18c8e8123c483364add72a84aec901' 2023-08-10 09:41:07 -05:00
Buster Neece 631dda96d8
Migrate the Administration panel to its own Mini-SPA. 2023-08-08 12:23:01 -05:00
Buster Neece 85214e6d2d
Merge commit '752d8d679f8cf075ed2d8608071dad654c293f93' 2023-08-07 05:10:49 -05:00
Buster Neece 43677d924c
Initial multi-server setup. 2023-07-30 00:53:09 -05:00
Buster Neece 0669d003c9
Bulk rename vars to camelCase (except controllers). 2023-06-08 06:32:32 -05:00
Buster Neece a7dd57429e
Implement SettingsAwareTrait. 2023-06-08 03:24:28 -05:00
Buster Neece 7d1b987d32
Alphabetize imports. 2023-06-08 02:32:25 -05:00
Buster Neece 6314fa7a09
Removing "App\Entity" imports, part 3 2023-06-07 11:11:40 -05:00
Buster Neece cbc6a1f4fc
Add EnvironmentAwareTrait. 2023-06-07 01:25:57 -05:00
Buster Neece a775e8e878
Update Station backend and frontend types to be enums. 2023-05-15 16:30:52 -05:00
Buster Neece 3068f7c4e7
Fix errors with Webhooks and error templates. 2022-11-17 09:13:41 -06:00
Buster Neece 2bc1073a42
Merge commit '1c6c8cb31d0490df4f2b92ca21de83134e9d5d0d' 2022-11-15 18:18:38 -06:00
Buster Neece 1c6c8cb31d
Asset overhaul. 2022-11-15 18:16:04 -06:00
Buster Neece 7d19046b22
Revert "Initial commit playing with Turbolinks."
This reverts commit 49e3cda913.
2022-11-14 18:28:49 -06:00
Buster Neece 49e3cda913
Initial commit playing with Turbolinks. 2022-11-14 18:27:55 -06:00
Buster Neece 3be5fa159b
#5763 -- Don't use X-Accel-Redirect for art; fix mime-type detection on local adapter. 2022-10-08 17:19:35 -05:00
Buster "Silver Eagle" Neece e0e3001a78
Class finalization part 1. 2022-07-01 01:06:29 -05:00
Buster "Silver Eagle" Neece 6e9af6f1f4
Unify feature checks; simplify station routes. 2022-06-29 23:38:46 -05:00
Buster "Silver Eagle" Neece ad3d2b2c69
Adapter simplification:
- Remove the stub "None"/"Remote" adapters; return null for disabled adapters
  - Add capability checks to adapter enums
  - Remove the Remote proxy
2022-06-21 20:48:32 -05:00
Buster "Silver Eagle" Neece 5b46d13d0d
Code style fixes. 2022-06-19 19:27:59 -05:00
Buster "Silver Eagle" Neece 910b8161a2
Improve logging on Malformed URI errors. 2022-06-14 15:18:17 -05:00
Buster "Silver Eagle" Neece db497a61ea
Minor code cleanup and deprecation fixes. 2022-05-17 02:51:00 -05:00
Buster "Silver Eagle" Neece 8776bb68fa
#4958 -- Only attempt API Auth with valid tokens. 2022-01-12 23:35:20 -06:00
Buster "Silver Eagle" Neece b23f28ab2a
Merge commit 'e6397a893da04c0a28c2306d39233b8a072e54e0' 2022-01-07 02:26:40 -06:00
Buster "Silver Eagle" Neece 349c1e580f
Closes #4754 -- Harden URI determination in other places. 2021-11-25 12:04:06 -06:00
Buster "Silver Eagle" Neece 9286747b62
Fix ErrorHandler flash messages, login referrer, etc. 2021-11-15 11:25:05 -06:00
Buster "Silver Eagle" Neece 888e110c5d
Allow "GET" API calls and "Restart Station" button. 2021-08-27 19:30:26 -05:00
Buster "Silver Eagle" Neece 5a2f1a42e5
Add CSRF token to all internal session-authenticated API requests. 2021-08-27 18:45:25 -05:00
Buster "Silver Eagle" Neece 95a9b8c781
Enforce HTTP-only (and secure) cookies for session persistence. 2021-08-26 18:40:11 -05:00
Buster "Silver Eagle" Neece b5fc9ad601
Use shared CallableEventManager library. 2021-08-04 21:24:27 -05:00
Buster "Silver Eagle" Neece 5cbacd5df6
System-Wide Strict Types (#4405) 2021-07-19 00:53:45 -05:00
Buster "Silver Eagle" Neece add05efbbf
Set feature policy; disable FLoC tracking. 2021-07-06 07:22:34 -05:00
Buster "Silver Eagle" Neece 5c6eb85e35
Make per-request items "request-aware" instead of using DI factories.
DI factories can't be cached as efficiently and incur a performance penalty on every request being handled by the system; using "request-aware" classes that clone themselves for each request solves the same problem in a far more performant way, cutting several ms off of every request.
2021-07-06 06:34:22 -05:00
Buster "Silver Eagle" Neece edb1839cbc
Allow Redis to be disabled in favor of flatfile cache. 2021-06-28 10:03:21 -05:00
Buster "Silver Eagle" Neece 27b4c240f9
Support both PUT and POST for podcast/episodes for compatibility. 2021-06-14 15:24:15 -05:00
Buster "Silver Eagle" Neece 5da0f4e3cb
Add more API unit tests; fix bugs identified by new tests. 2021-06-12 22:57:10 -05:00
Buster "Silver Eagle" Neece a320c1a6a0
More code cleanup. 2021-06-09 22:22:13 -05:00
Buster "Silver Eagle" Neece 3f23efa076
PHP code style fixes. 2021-06-08 01:40:49 -05:00
Vaalyn 1a04f9791f
Implement Podcasting Support
Co-authored-by: Buster "Silver Eagle" Neece <buster@busterneece.com>
Co-authored-by: Mitch <Mitchellfrith1996@gmail.com>
2021-05-24 23:29:07 -05:00
Buster "Silver Eagle" Neece f83a9310e9
#4139 -- Optimize router handling to avoid hammering the DB. 2021-05-11 09:05:23 -05:00