Neeraj Gupta
9650eb3ff6
[server] Enable replication for vid_preview
2024-12-02 05:49:38 +05:30
Manav Rathi
f950870459
[server] Add more details to the doc for the internal.disable-registration
2024-11-30 06:07:48 +05:30
Manav Rathi
c5ffdfd091
Add internal.disable-registration
to config ( #4238 )
...
## Description
As discussed in #2476 , I added an option `internal.disable-registration`
to allow disabling the registration of new users on selfhosted
instances.
Users can still go through the registration flow, but when entering the
ott they received via mail, they get an unauthorized error.
Should this be documented in any of the self-hosting documentation?
2024-11-30 05:56:43 +05:30
Neeraj Gupta
32f8075acf
[server] Store preview obj size
2024-11-30 00:02:28 +05:30
Neeraj Gupta
9fb1dbf67e
Merge branch 'main' into video_file_preview
2024-11-29 23:50:58 +05:30
Neeraj Gupta
98c2e98e16
[server] Add missing nil check
2024-11-29 20:06:47 +05:30
Neeraj Gupta
d3d419e12d
[server] RateLimit max sessions in an hour
2024-11-29 19:33:36 +05:30
Julian Pollinger
aed7075a13
invert if condition
2024-11-29 14:50:46 +01:00
Neeraj Gupta
002b148dae
Increase delay
2024-11-29 12:48:18 +05:30
Neeraj Gupta
c6ec3fa8fd
[server] Fixed delay in next attemp
2024-11-29 12:24:12 +05:30
Neeraj Gupta
a54cbd779a
[server] Alert on object replcement
2024-11-29 12:01:34 +05:30
Neeraj Gupta
99ad1068f0
[server] Retry replication after 7 day instead of 1 (temp change)
2024-11-29 11:11:28 +05:30
Neeraj Gupta
6703f16caa
Fix alert copy
2024-11-29 11:07:43 +05:30
Neeraj Gupta
06cad1b996
[server] fileData: Support for replicating object
2024-11-29 11:01:24 +05:30
Neeraj Gupta
2a4b15ea48
[server] Fix lint
2024-11-29 10:58:38 +05:30
Julian Pollinger
39f2d03e74
add internal.disable-registration
to config
2024-11-29 00:44:33 +01:00
Manav Rathi
836fc951f4
Format
2024-11-28 16:06:43 +05:30
Manav Rathi
f096e084ef
Don't apply auto-first-admin if internal.admin is set
2024-11-28 16:04:04 +05:30
Manav Rathi
2196c3dbc8
Fix code that didn't even compile
2024-11-28 15:55:16 +05:30
Manav Rathi
c6872d2d35
[server] Document the internal.admin flag
...
Complements https://github.com/ente-io/ente/pull/4228
2024-11-28 15:42:33 +05:30
Neeraj Gupta
c0bbad8f88
Store nil as objectNonce for video objet
2024-11-28 15:38:47 +05:30
Andy
55cd084ea8
Add support for specifying a singular admin id to workaround GetIntSlice issue
2024-11-28 03:11:52 -05:00
Neeraj Gupta
b5c2991575
Merge branch 'main' into video_file_preview
2024-11-28 12:46:09 +05:30
Neeraj Gupta
943f4ac973
[server] Create totpSession when both passkey and totp are enabled ( #4211 )
...
## Description
- When both `passkeySessionID` and `twoFactorSessionID` are set in the
response, the web will surface passkey based login while mobile will
only surface totp based login.
- For now, I have added a new field in the response
(`twoFactorSessionIDV2) for totpBased twoFactor, that will be only set
when both passkey and totp based MFA are enabled.
- Once both mobile and desktop changes are out, we can remove this new
field `twoFactorSessionIDV2` from the response
Corresponding mobile diff: https://github.com/ente-io/ente/pull/4210
## Tests
2024-11-27 15:27:10 +05:30
Neeraj Gupta
04ee6f8161
[server] Create totpSession when both passkey and totp are enabled
2024-11-27 14:54:24 +05:30
Manav Rathi
3049c25db8
[API] Add Cache-control: no-store to API responses
...
...instead of adding it to ad-hoc API requests.
2024-11-27 08:29:10 +05:30
Neeraj Gupta
ccc6981df9
[server] Fix usage cal in user_details
2024-11-26 14:26:17 +05:30
Manav Rathi
7be9963303
[API] Remove trailing slash from inconsistent cast endpoints
...
None of our other endpoints have a trailing slash. Remove this inconsistency,
otherwise clients who'd not provide a trailing slash would get an unnecessary
redirect.
Note that the CORS-aware clients (web, desktop) do not automatically follow the
redirect because the ACAO is missing on the 307, so we need keep the old
endpoints around temporarily.
Tested: with web and museum running locally
2024-11-26 09:53:44 +05:30
Neeraj Gupta
d4311bc6c2
[server] Include objectKey in size mismatch
2024-11-26 07:00:36 +05:30
Neeraj Gupta
cd1b0b1f6a
[server] Add registration check for login
2024-11-26 06:59:32 +05:30
Neeraj Gupta
338c2ec369
[server][delete] return list of apps being used
2024-11-22 16:17:08 +05:30
Neeraj Gupta
831e78f510
[server] Trim space
2024-11-22 15:20:38 +05:30
Neeraj Gupta
25596854d3
[server] Additional data for support dashboard
2024-11-22 15:18:24 +05:30
Neeraj Gupta
f93885fba3
[server] Return passkey acount
2024-11-22 13:01:52 +05:30
Neeraj Gupta
f37b25a1c7
[server]Throw err if account registration is completed
2024-11-21 17:26:32 +05:30
Neeraj Gupta
05f5c7f439
[server] Wrap inside db transaction
2024-11-19 10:28:02 +05:30
Neeraj Gupta
641a73c101
[server] validate bonus reversal
2024-11-19 10:24:58 +05:30
vishnukvmd
fe59e0ae65
[server] Update constraints for adding BF deal by support
2024-11-15 13:24:22 +05:30
Neeraj Gupta
bd53eaec28
[server] Add validation for object_keys
2024-11-13 12:04:55 +05:30
Neeraj Gupta
13053decf0
[server] Fix BF handling for bonus calculation
2024-11-12 11:00:03 +05:30
Vishnu Mohandas
ae89637cf9
[server] Send a notification email on BF deal purchase ( #3994 )
...
<img width="634" alt="Screenshot 2024-11-09 at 11 13 38 AM"
src="https://github.com/user-attachments/assets/156d86ae-1bf3-411a-9dfb-f992d9e34abd ">
2024-11-09 11:42:56 +05:30
vishnukvmd
f5549d4458
[server] Send a notification email on BF deal purchase
2024-11-09 11:13:14 +05:30
Vishnu Mohandas
a8b1299117
[server] Update constraints to allow for BF 2024 ( #3978 )
2024-11-08 17:57:31 +05:30
vishnukvmd
949c3c3c73
[server] Update constraints to allow for BF 2024
2024-11-08 17:45:16 +05:30
Vishnu Mohandas
4dfb73e3d9
[server] Black Friday 2024 ( #3977 )
2024-11-08 16:28:24 +05:30
vishnukvmd
a558da2706
[server] Black Friday 2024
2024-11-08 16:14:59 +05:30
Neeraj Gupta
8b01129cc9
[server] FileData: Return objectId and nonce
2024-11-08 16:12:41 +05:30
Neeraj Gupta
58486744e1
Merge branch 'main' into video_file_preview
2024-11-08 15:52:36 +05:30
Neeraj Gupta
ccc436be26
[server] refactor fd status API
2024-11-07 14:33:04 +05:30
Neeraj Gupta
a0d46ac60e
Merge branch 'main' into video_file_preview
2024-11-07 14:09:56 +05:30