Commit Graph

265 Commits

Author SHA1 Message Date
4c68ad46f4 Refactor RssFeedManager to use new model when closing feeds, fix close series feed when series is removed, update RssFeedManager to singleton 2024-12-15 12:37:01 -06:00
57906540fe Add:Server setting to allow iframe & update UI to differentiate web client settings #3684 2024-12-08 08:57:45 -06:00
a8ab8badd5 always set req.originalHostPrefix 2024-12-08 09:23:39 +02:00
9b8e059efe Remove serverAddress from Feeds and FeedEpisodes URLs 2024-12-07 19:27:37 +02:00
3b4a5b8785 Support ALLOW_IFRAME env variable to not include frame-ancestors header #3684 2024-12-06 17:17:32 -06:00
843dd0b1b2 Keep original socket.io server for non-subdir clients 2024-11-29 04:13:00 +02:00
f9aaeb3a34 Update:Set Content-Security-Policy header to disallow iframes 2024-11-23 11:17:13 -06:00
850ed48955 Fix:Podcast episodes duplicated when a scan runs while the episode is downloading #2785 2024-11-07 17:26:51 -06:00
a5ebd89817 Update FolderWatcher to singleton 2024-11-07 16:32:05 -06:00
4224b8a486 No auth and req.user for cover images 2024-11-02 15:17:11 +02:00
cbca560f92 server.js: add base path to all non-base-path requests 2024-10-15 06:40:14 +03:00
7cd8d7f44d Update NotificationManager to singleton 2024-09-27 17:33:23 -05:00
d796849d74 Small change to logging of unhandled rejections 2024-09-18 18:44:16 +03:00
1326d29fad Merge pull request #3332 from itzexor/memorystore-2
memorystore: simplify, refactor, re-enable
2024-08-27 16:56:07 -05:00
38edcdca4b Updates to use new Library model 2024-08-23 16:59:51 -05:00
ec197b2e13 memorystore: simplify, refactor, re-enable
Removes a lot of unused (in ABS) functionality, refactors to ES6
style class, and re-enables this custom implementation with check
period and ttl of 1 day, and 1000 max entries.

The class now only implments the required (as per express-session docs)
methods and removes optional methods, except touch() which allows the
TTL of an entry to be refreshed without affecting its LRU recency.

There is no longer a way to stop the prune timer, but I don't belive
the function was ever being called beforehand. The session store's
lifetime is the same as the application's, and since it is unref()'d
should not cause any shutdown issues.
2024-08-22 03:55:51 +00:00
27b3a44147 Add: Backup notification (#3225)
* Formatting updates

* Add: backup completion notification

* Fix: comment for backup

* Add: backup size units to notification

* Add: failed backup notification

* Add: calls to failed backup notification

* Update: notification OpenAPI spec

* Update notifications to first check if any are active for an event, update JS docs

---------

Co-authored-by: advplyr <advplyr@protonmail.com>
2024-08-18 14:32:05 -05:00
2472b86284 Update:Express middleware sets req.user to new data model, openid permissions functions moved to new data model 2024-08-11 16:07:29 -05:00
202ceb02b5 Update:Auth to use new user model
- Express requests include userNew to start migrating API controllers to new user model
2024-08-10 15:46:04 -05:00
59370cae81 Update:Docker source skip binary manager check #3266 2024-08-10 12:37:41 -05:00
7e442ecb3d Revert MemoryStore used in expressSession 2024-08-08 16:54:48 -05:00
8ff7b6b6e6 Add server log for process.platform and process.arch #3231 2024-08-04 17:08:55 -05:00
4d3b3d1740 Update:Replace default express-session MemoryStore with stable MemoryStore #2538 2024-08-04 12:00:10 -05:00
164b4525c4 Replace function for cleaning up user seriesHideFromContinueListening to not use old model 2024-08-03 15:08:03 -05:00
329e9c9eb2 BinaryManager support for libraries and downloading from github release assets 2024-07-27 21:51:31 +03:00
eabfa90121 Update:Move library stats page to SideRail #3134 2024-07-13 15:26:07 -05:00
928b080677 Replace pkg with @yao-pkg/pkg and target node20 2024-07-06 19:43:55 +03:00
fed5ff4863 Add:Daily cron that closes stale open playback sessions 2024-07-04 12:00:54 -05:00
8e286a6070 Open media item share sessions shown on listening sessions page, create device info for share sessions 2024-06-30 16:36:00 -05:00
d6eae9b43e Add:Create media item shares with expiration #1768 2024-06-22 16:42:13 -05:00
9c33446449 Update:Support for ENV variables to disable SSRF request filter (DISABLE_SSRF_REQUEST_FILTER=1) #2549 2024-06-03 17:21:18 -05:00
69833db819 Add:Env variable setting to allow CORS 2024-05-19 14:40:46 -05:00
37932f664a Auto formatting for Server.js 2024-05-05 16:39:38 -05:00
76a1f48c62 Remove UID/GID from Server constructor 2024-03-11 11:11:13 -05:00
d7aba5629e Remove old login rate limiter 2024-02-17 15:29:06 -06:00
af7cb2432b Update:Log uncaught exceptions to crash_logs.txt #706 & cleanup logger 2024-02-15 16:46:19 -06:00
b489bf9236 Restrict binary manager to Windows or development 2024-01-02 14:24:59 -06:00
aa63aa6cf3 Merge branch 'master' into binary-manager 2024-01-02 14:16:27 -06:00
707451309c Merge branch 'master' of https://github.com/advplyr/audiobookshelf 2023-12-29 17:05:40 -06:00
269676e8a5 Update:CORS for /cover API endpoint for use in canvas in the mobile apps 2023-12-29 17:05:35 -06:00
9a634e0de5 Add JS docs for server stop 2023-12-28 16:32:21 -06:00
21d0d43edc Add SocketAuthority.close() 2023-12-27 15:33:33 +02:00
3051b963ef Merge branch 'advplyr:master' into binary-manager 2023-12-27 06:44:22 +02:00
209847d98a Add a SIGINT handler for proper server shutdown 2023-12-25 09:25:04 +02:00
2e989fbe83 Add BinaryManager 2023-12-05 21:19:17 +02:00
166477ae27 Fix:Narrators page 404 on reload #2359 2023-11-28 16:39:52 -06:00
1a046a9bcb Merge branch 'master' into caching 2023-11-24 14:38:27 -06:00
ab19e25586 Remove unnecessary timing measurements 2023-11-23 09:56:37 +02:00
32ce771911 Allow cors while in development 2023-11-22 12:37:18 -06:00
d944ecaa21 Merge branch 'caching' of https://github.com/mikiher/audiobookshelf into caching 2023-11-22 19:10:29 +02:00