Commit Graph

66 Commits

Author SHA1 Message Date
Neeraj Gupta
a8c7dd52ba [server] Slow down crons 2024-09-19 11:49:48 +05:30
Manav Rathi
af6feaf735 [server] Remove unused roadmap related endpoints 2024-09-09 13:46:54 +05:30
Neeraj Gupta
be3a709335 [server] Use nanoId as reqID 2024-08-30 09:16:43 +05:30
Manav Rathi
46e1552f1e [server] Cache count improvement (#2972)
## Description
This does not handle the case where the server might get multiple
request for same user to get the count, and the file count is not cached
yet.

## Tests
2024-08-27 12:15:09 +05:30
Neeraj Gupta
e32facf3e6 [server] Refresh fileCount only if trash or usage changed 2024-08-27 12:01:00 +05:30
Neeraj Gupta
bf7f1d43c0 [server] Update endpoint 2024-08-27 11:26:59 +05:30
Neeraj Gupta
65497862ea [server] Remove unused endpoint 2024-08-27 10:48:56 +05:30
Neeraj Gupta
27546fb558 [server] Allow both enabling or removing email MFA 2024-08-24 15:38:13 +05:30
Neeraj Gupta
6786491d72 [server] Add admin endpoint to add ott 2024-08-24 15:35:53 +05:30
Neeraj Gupta
6baa1c08c5 [server] Admin endpoint to disable email mfa 2024-08-24 15:09:32 +05:30
Neeraj Gupta
c57bc22987 [server] Fix request type 2024-08-21 16:39:09 +05:30
Neeraj Gupta
e5d6d324db Add API to update referral code 2024-08-21 16:28:24 +05:30
Manav Rathi
d9d4ffa9e7 [server] Minor tweaks to the new FileData API URLs
- Start with leading slash for easier greppability
- Omit trailing slash for consistency

No production clients are using this yet, so should be safe.
2024-08-13 12:17:53 +05:30
Neeraj Gupta
8b33612879 clean up 2024-08-12 15:49:14 +05:30
Neeraj Gupta
cd2fde2c2e [server] 1/n Support for persisting preview video 2024-08-09 15:50:29 +05:30
Neeraj Gupta
7834662340 [server] Clean up 2024-08-09 13:08:46 +05:30
Neeraj Gupta
ffbd76b88b [server] Support for replicating ml data 2024-08-09 12:40:52 +05:30
Neeraj Gupta
272d17615e [server] Remove fileData cleanup via queue 2024-08-08 13:03:34 +05:30
Neeraj Gupta
84fa8f343b clean up 2024-08-06 15:34:27 +05:30
Neeraj Gupta
ec91e75780 [server] Handle fileData cleanup on file Deletion 2024-08-06 15:31:53 +05:30
Neeraj Gupta
744d6bc6ea Add helper method to empty bucket for given user 2024-08-05 17:35:05 +05:30
Neeraj Gupta
d0fd868705 Merge branch 'main' into file_data 2024-08-05 10:24:02 +05:30
Neeraj Gupta
14d003dd8f [server] Add API to update referral code 2024-08-03 16:39:15 +05:30
Neeraj Gupta
e32cd7b64c [server] Expose API to get and put metadata 2024-08-02 15:09:52 +05:30
Neeraj Gupta
dc143bbaaf [server] Minor fix 2024-07-29 15:48:22 +05:30
Neeraj Gupta
2cc87140ed Add basic endpoint to unblock testing 2024-07-29 15:37:58 +05:30
Manav Rathi
d989a3b631 [server] Stop exposing /metrics for self-hosted users
Doesn't impact Ente's production instances since this endpoint was disallowed on
the load balancer, but instead of requiring the same for folks who are self
hosting we modify the source to not expose /metrics on :8080 (they'll still be
available on :2112).

Refs:
- 2199a42d96/middleware.go (L345)
- https://github.com/ente-io/ente/discussions/2562
2024-07-29 11:22:34 +05:30
Neeraj Gupta
40a4f783f7 [server] Add API to return indexed files for given model 2024-07-22 16:15:25 +05:30
Neeraj Gupta
cf4d407f39 Add API to get token data for given passkey session 2024-06-12 16:16:48 +05:30
Manav Rathi
b9d4f9ff10 /passkeys/registration/begin GET => POST 2024-06-10 16:35:10 +05:30
Neeraj Gupta
3e7b16288f Add support for configuring diff bucket for embeddings 2024-05-14 14:03:35 +05:30
Neeraj Gupta
94d0378e18 [server] Clean up old cast sessions 2024-04-25 14:43:25 +05:30
Neeraj Gupta
5afc2de7bc [server] Add admin endpoint for updating feature flag 2024-04-22 17:43:14 +05:30
Neeraj Gupta
648806baa7 [server] Add endpoint to get user feature flags 2024-04-22 17:30:54 +05:30
Neeraj Gupta
816fa330de [server] Implement support for copying object 2024-04-19 11:26:14 +05:30
Neeraj Gupta
c124cde471 [server] Add basic scaffold for copying files 2024-04-17 15:43:48 +05:30
Neeraj Gupta
8ed2c7cff9 [server] Pick base publicHost url from config (#1443)
## Description

## Tests
Ran locally with the config in local.yaml and verified that it's
modified as well when I had put localhost:3002 in the museum.yaml config
2024-04-15 09:56:21 +05:30
Neeraj Gupta
459c4515a0 [server] Drop locationTag table and related code 2024-03-29 16:08:28 +05:30
Neeraj Gupta
449284a6a1 [server] API to fetch ML embeddings for given fileIDs (#1144)
## Description
- Also started storing the embedding size and version in the table. This
will come handy while comparing overall size when different compression
and serialization formats are used..
- Also, it can be used to smartly auto-download the embeddings or inform
the user about approximate size when they decide to enable indexing or
search on a particular client.

## Tests

 Verified that embedding fetch and store is working fine.
 Verified that embeddings/diff API is working fine.
2024-03-19 12:23:24 +05:30
Neeraj Gupta
c564e50d59 [server] change method type to post 2024-03-18 14:38:11 +05:30
Manav Rathi
a341f81932 [museum] Support running behind Nginx (#1130)
- Move deployment related stuff into a separate folder
- Document the overall approach better
- Add an Nginx specific environment and service definition
- Remove the restart limiter
2024-03-18 13:56:01 +05:30
Neeraj Gupta
b9ec72bbb4 Merge branch 'main' into file_embedding 2024-03-18 13:12:14 +05:30
Manav Rathi
7ded8ad4fe Fix key name 2024-03-18 13:07:36 +05:30
Manav Rathi
d8347c3976 Remove extra environment 2024-03-18 12:36:29 +05:30
Manav Rathi
303b26b95f Tweak the nginx setup 2024-03-18 11:04:31 +05:30
Neeraj Gupta
47747f1d56 Update config 2024-03-18 10:12:02 +05:30
Neeraj Gupta
12b9ac4db6 [server] Rate limit (#1121)
## Description

## Tests
2024-03-17 09:59:59 +05:30
Neeraj Gupta
e927064476 [server] Add endpoint to get embedding for givenFilesIds 2024-03-17 09:37:02 +05:30
vishnukvmd
77276d8d6c [server] Add admin API to change email address 2024-03-13 17:31:38 +05:30
Neeraj Gupta
28335700e3 [server] Remove deprecated API 2024-03-11 15:41:18 +05:30