Commit Graph

190 Commits

Author SHA1 Message Date
Artemy d8be8d5ca9 appjson 2026-10-04 11:38:08 +07:00
Artemy 33ef17f73d Support --migrate-only startup and secrets handling
Add a Timeweb deployment guide and improve secret handling and migrations.

- docs/timeweb-deployment.md: deployment and migration instructions for Timeweb.
- .gitignore: ignore a secrets/ folder.
- Govor.API.csproj: ensure secrets/** are not copied to output/publish.
- Program.cs: add --migrate-only flag (removes it from args), skip Firebase init when migrating, accept Firebase credentials via CredentialsJson or CredentialsPath/GOOGLE_APPLICATION_CREDENTIALS, resolve relative paths against content root, apply pending EF Core migrations and exit while logging progress.

Normal API startup behaviour unchanged (migrations are applied only with --migrate-only).
2026-10-04 11:22:39 +07:00
Artemy b51482ea57 Merge branch 'master' of https://github.com/Govor-team/Govor 2026-10-04 10:35:44 +07:00
Artemy 2e9d7e625e Add primitive groups and required channel
Adds server-side group and channel management, private invitations, member moderation, avatar handling, and required-channel configuration. This change also introduces SignalR group profile/member notifications, updates registration to atomically join required channels, and adds EF migration and test coverage for group membership, permissions, and invitation expiry rules.
2026-10-04 10:35:07 +07:00
stalcke2288969 0dd8457df1 GITBOOK-16: SignalR: профиль, членство и права групп/каналов 2026-10-04 02:00:32 +00:00
stalcke2288969 ebd6cb59be GITBOOK-15: Группы и каналы: приглашения, роли, модерация и обязательный канал 2026-10-03 13:54:10 +00:00
Artemy fed8f518ee Document SignalR and session key APIs
Add the experimental session-key API notes and reorganize the SignalR FriendsHub docs under docs/signalr/friendshub. The updates include front matter metadata, corrected caveats about current implementation behavior, and links to the relevant source files for verification.
2026-10-03 17:49:22 +07:00
Artemy 29cc51ee0c Add reactions, reliable push & session checks
Implements message reactions and reaction packs (domain models, services, admin HTTP API, media processing via ImageSharp and limits) and adds reliable push delivery (ChatPushNotification, ChatPushDispatcher, ChatPushWorker, improved ChatNotificationService). Enhances message reading (ReadChat API, unread counts, concurrency-safe receipts) and tightens session security (access-token session validation in JWT, hub filter, SessionAuthorization). Improves SignalR behavior (session groups, reaction/channel events, hub/error mappings). Adds EF migrations, many controller fixes (Forbid handling, password API), tests (Govor.Server.Tests), docs, CI and tooling updates (Dockerfile → .NET 10, GH Actions matrix for sqlite/postgres, Govor.Server.slnx, global.json), and small infra changes (AutoMapper bump, NullPushProvider, storage/token handling).
2026-10-03 17:42:24 +07:00
stalcke2288969 6c8abb23e3 GITBOOK-14: Govor.API: документация по текущему коду и диагностика 03.10.2026 2026-10-03 06:20:45 +00:00
Artemy 4603be9f71 Add read receipts and editing limits
Introduced message read tracking with a dedicated MessageReadingService, SignalR read request/response contracts, and hub notification flow for read receipts. Added configurable message edit constraints through MessageEditingOptions and a shared INowDateTimeProvider so timestamps are consistent across the app. Also fixed recipient validation in message removal and improved push token upsert behavior by matching the correct user/session record.
2026-08-27 18:02:47 +07:00
Artemy 3ec61fa2c0 Stable server
was added removing messages
many fixes bugs and moving to result pattern from throwing exceptions
2026-08-22 19:28:42 +07:00
Artemy 27fdcf85da Use Result.ToActionResult in RefreshController
Import the API extensions and replace manual result handling in RefreshController with result.ToActionResult(), removing the inline empty-token check and switch-based error mapping. Also normalize the empty-token error message in UserSessionRefresher from "cannot be empty" to "can't be empty". This centralizes Result -> IActionResult conversion and simplifies the controller logic.
2026-07-25 20:26:34 +07:00
Artemy 3c785d5c89 Switch to SmartRes Result/Error, upgrade to .NET 10
Migrate codebase to use SmartRes Result<T, Error> (and Unit) across services and interfaces, replacing previous Result usage and updating many method signatures and implementations. Add ResultExtensions to convert SmartRes results to ASP.NET ActionResult and refactor AuthController to use functional Bind/Tap chains for registration/login flows. Upgrade projects to .NET 10 and bump related NuGet packages; add libs/SmartRes.dll and project references. Simplify DbContext registration to use Npgsql only with retry policies and enable detailed logging. Update Swagger/launch settings and other minor fixes (AutoMapper registration change, whitespace/exception handling, and removal of the Govor.ConsoleClient files).
2026-07-25 20:20:45 +07:00
Artemy 6d1c53beeb Refactor: migrate Core -> Domain and reorganize projects
Large refactor that renames/moves core types into a new Govor.Domain surface and reorganizes the Application layer. Models, configurations, migrations and many files moved from Govor.Core/Govor.Data to Govor.Domain; numerous Application services, interfaces and implementations were relocated or added (authentication, friends, messages, medias, push notifications, user sessions, storage, synching, private chats, etc.). Tests updated to use Govor.Domain namespaces and adjusted project references (removed Govor.Data reference from API tests). Also updated API, Hub and mapping code and project files to reflect the new structure and naming. This is primarily a codebase-wide namespace and module reorganization to establish a Domain project and restructure application services.
2026-07-16 19:27:45 +07:00
Artemy 1d35356c8c firebase sdk update + sql options 2026-04-05 13:52:13 +07:00
Artemy 27ef94721f important fix 2026-03-07 21:44:15 +07:00
Artemy bc95cb5331 push was updated 2026-03-07 21:36:27 +07:00
Artemy 08270e0350 was added new rules to usernames 2026-03-07 21:19:48 +07:00
Artemy ecb9f4581d fix searching of push tokens 2026-03-01 19:17:54 +07:00
Artemy dc6bf14e43 fix bugs 2026-03-01 18:10:21 +07:00
Artemy eab0d746b8 was added firebase nitifying 2026-03-01 16:48:06 +07:00
Artemy 76d7280c71 updated appsettings 2026-02-22 20:25:29 +07:00
Artemy aa4c4a0685 fixed tests and adding new sessions when it not needed 2026-02-22 19:34:43 +07:00
Artemy b1eff9c696 remove ip 2026-02-09 00:16:32 +07:00
Artemy 0a3d80ea27 new ip 2026-02-09 00:08:55 +07:00
Artemy a8e31116b2 with out app.UseHttpsRedirection 2026-02-09 00:01:29 +07:00
Artemy f85e251277 with out https 2026-02-08 23:50:37 +07:00
Artemy 37d986bdbf applicationUrl 2026-02-08 23:43:17 +07:00
Artemy 0d9af9f437 new urls 2026-02-08 23:34:13 +07:00
Artemy f54b00ab31 set new UseUrls 2026-02-08 23:15:48 +07:00
Artemy bc4988a48d fix errors 2026-02-08 22:41:22 +07:00
Artemy cb1e769fa0 Merge branch 'master' of https://github.com/Govor-team/Govor 2026-02-08 22:31:02 +07:00
Artemy 0a43e35797 test to make server 2026-02-08 22:30:29 +07:00
stalcke2288969 e05f86f7a2 GITBOOK-13: No subject 2025-12-18 04:54:37 +00:00
Artemy cc2921d257 Updeted Session Model and Session Opener Service
renamed RefreshToken in model to RefreshTokenHash - now we have a hash of token, not a token
2025-12-14 14:03:18 +07:00
Artemy 0ad6b52de5 Merge branch 'master' of https://github.com/Govor-team/Govor 2025-12-12 17:28:37 +07:00
Artemy 7e6f914878 technical edits 2025-12-12 17:23:01 +07:00
Artemy 3a9985de3a Update README.md 2025-11-18 21:50:15 +07:00
Artemy c09de05d60 Update and rename README to README.md 2025-11-18 21:49:41 +07:00
Artemy 330b604410 Update README 2025-11-18 21:48:59 +07:00
Artemy d3ef67bfb3 Create README 2025-11-18 21:46:51 +07:00
Artemy bf2aca40d3 added https 2025-11-04 13:40:03 +07:00
Artemy ed03d6cbf7 part 2 to update applicationUrl 2025-11-04 13:03:07 +07:00
Artemy 595253d7c3 add 8080 to applicationUrl 2025-11-04 13:00:32 +07:00
Artemy 986f5ae6ea help me 2025-11-04 12:58:15 +07:00
Artemy b1e8cc83b2 update docker file 2025-11-04 12:49:41 +07:00
Artemy e6f7292bab AllowedHosts updated 2025-11-04 12:38:17 +07:00
Artemy 3385d484ff docker file update 2025-11-04 12:12:48 +07:00
Artemy c541c404b4 added new origins 2025-11-04 11:58:14 +07:00
Artemy c462d065f4 [TearDown] added 2025-11-04 11:51:37 +07:00