Commit graph

72 commits

Author SHA1 Message Date
Pat Hartl
41f4fa93f0 Initialize Docker configuration 2025-03-07 20:44:32 -06:00
Pat Hartl
f7477e9f1c Fix IPX relay autostart
Fixes #188
2025-03-07 01:03:14 -06:00
Pat Hartl
6e6ad58dce Fix singleton registration of settings for fresh instals 2025-03-05 00:32:32 -06:00
Pat Hartl
ac1eff8c98 Create directories on start if they don't exist 2025-02-26 00:39:01 -06:00
Pat Hartl
777b7d6ea6 Prevent autostart servers from stopping application execution 2025-02-25 23:55:04 -06:00
Pat Hartl
de60ceb04d Fix server starting/stopping, fix server autostart preventing app from starting, fix status update on external close of server 2025-02-25 22:05:23 -06:00
Pat Hartl
01c7bbfa8b Fix archive download endpoint
Fixes #181
2025-02-25 21:22:19 -06:00
Pat Hartl
b05860d816 Move importing to new service with implementations 2025-02-16 09:17:26 -06:00
Pat Hartl
c861254387 Fix download routes 2025-02-16 02:12:13 -06:00
Pat Hartl
6d5c9d06c5 Fix antiforgery issues when importing archive 2025-02-16 00:05:11 -06:00
Pat Hartl
17525f9d02 Add storage location if one doesn't already exist
Fixes #173
2025-02-12 21:23:59 -06:00
Pat Hartl
6a0552aa30 Don't start servers if database isn't configured 2025-02-12 20:39:58 -06:00
Pat Hartl
5fde4b63b3 Switch to OpenApi 2025-02-09 01:23:33 -06:00
Pat Hartl
28aef43e1c Add forms for editing logging providers 2025-02-08 19:27:59 -06:00
Pat Hartl
5b32a440b3 Adopt new startup pattern 2025-02-08 15:28:13 -06:00
Pat Hartl
4c8cbc840a Merge branch 'refactor-startup'
# Conflicts:
#	LANCommander.Server/Program.cs
#	LANCommander.Server/Properties/launchSettings.json
2025-02-08 14:07:29 -06:00
Pat Hartl
eef0b01758 Add support for running as service 2025-02-06 19:11:33 -06:00
Pat Hartl
69e903499b Add auditing interceptor 2025-02-02 19:14:06 -06:00
Pat Hartl
123a5827c3 Remove repository 2025-02-02 18:52:47 -06:00
Pat Hartl
12c5110795 Fix non-https binding 2025-01-25 12:02:30 -06:00
Pat Hartl
7b4f2950c7 Add separate binding for SSL 2025-01-25 02:40:36 -06:00
Pat Hartl
dec4edf06d Don't log ping requests 2025-01-25 02:11:04 -06:00
Pat Hartl
b6fa4d4a10 Add ability to specify SSL certificate 2025-01-25 01:57:17 -06:00
Pat Hartl
a8ddf89eac Add cookie policies to settings 2025-01-06 20:34:57 -06:00
Pat Hartl
cbfd1fc30d Support forwarded headers 2025-01-06 17:59:53 -06:00
Pat Hartl
fb7f6b6452 Fix login routing 2025-01-06 17:03:40 -06:00
Pat Hartl
e32675f4cb HTTPS redirection 2025-01-04 18:07:37 -06:00
Pat Hartl
2c93743400 Fix missing using 2025-01-04 02:02:41 -06:00
Pat Hartl
ef8cc2ad79 Try forwarding scheme 2025-01-04 01:53:16 -06:00
Pat Hartl
78dbcdfd6c Fix auth service 2025-01-01 21:12:07 -06:00
Aaron Powell
8e5a4f6bf4 Refactoring startup for easier understanding and tracing
Broke the startup of the app into a series of extension methods (and classes to contain them), rather than one long method. This means the stack tracers are easier to follow when the startup fails, and it's clearer what's happening when throughout the pipeline.

I've included a few optimisations, such as starting to rely more on DI for injecting things (like the logger) rather than the static logger, which in turn can help with testability and evaluation of the callstack.
2025-01-02 11:40:15 +11:00
Pat Hartl
98c0d276b0 Support OAuth as well as OIDC
- Rename ExternalProvider to AuthenticationProvider
- Add enum for authentication provider type (OAuth, SAML, OIDC, etc)
- Add claim mappings
- Move authentication provider registration to extension methods
2024-12-28 05:23:23 -06:00
Pat Hartl
11e182413d Add ability to define external authentication providers 2024-12-28 03:48:15 -06:00
Pat Hartl
ce17b7999f Rework depot results, API docs via Scalar 2024-12-16 00:57:11 -06:00
Pat Hartl
5de9eccce1 Adjust Blazor server-side to pull data with new context 2024-11-25 22:29:56 -06:00
Pat Hartl
d4ecdc5500 Remove reference to context tracker 2024-11-22 02:21:06 -06:00
Pat Hartl
00b9ca5953 Rename service and repository methods to async 2024-11-12 18:32:46 -06:00
Pat Hartl
6528015f4a Add authorization functionality to swagger 2024-11-12 02:18:04 -06:00
Pat Hartl
8996c04c83 Add eager loading to repo. Move semaphore to DbContext. Inject DbContext instead of factory to open less connections 2024-11-07 01:40:05 -06:00
Pat Hartl
4643aecc8f Remove useless startup log 2024-11-05 20:38:40 -06:00
Pat Hartl
7a90c254bd Only generate thumbnails on start if database is connected 2024-11-05 20:22:34 -06:00
Pat Hartl
e1030d25d9 Enable migrations and server autostarts 2024-11-05 20:21:28 -06:00
Pat Hartl
31433213b6 Generate thumbnails on startup 2024-11-05 20:20:03 -06:00
Pat Hartl
e30a1baef3 Start of migrations, services, controllers 2024-10-31 01:54:34 -05:00
Pat Hartl
41091e5e6d Fix redirects to login or first time setup if required 2024-10-23 22:28:55 -05:00
Pat Hartl
d045c50525 Back to scoped! 🙃 2024-10-23 02:30:18 -05:00
Pat Hartl
42ca5c323a WIP MySQL concurrency fixes
- Removed the Blazor authentication pages and went back to Razor pages
- Fixed issues with dashboard charts that were pulling data on render and causing the database context to be open longer than it should
- Switched back to UserManager and RoleManager
- Temporarily disabled authentication state in pages that might try to use user claims/roles
- Reverted spacing changes to forms to allow for validation messages
- Moved initialization of database connection to database context
- Updated PostgreSQL provider
- Rescaffolded MySQL migrations
- Added a bunch of logging stuff that should eventually be stripped out
2024-10-21 20:06:52 -05:00
Pat Hartl
84c5ed19ce Fixed AntBlazor component interactivity 2024-10-19 18:00:06 -05:00
Pat Hartl
2056b06207 Working new login page 2024-10-18 19:15:05 -05:00
Pat Hartl
fe0250c12a Register DbContextFactory and IdentityContextFactory 2024-10-16 18:41:39 -05:00