Commit graph

24419 commits

Author SHA1 Message Date
Neeraj Gupta 7de60f1ced [server] Reduce discord message frequency 2024-03-18 10:02:13 +05:30
Neeraj Gupta 4acc8395ba [server] Prefix discord msg with hostname 2024-03-18 09:59:35 +05:30
Manav Rathi f85f220c1d
Web Passkey Recovery (#1047)
## Description

* Adds passkey recovery feature parity from #1013

## Tests
2024-03-17 11:44:13 +05:30
Neeraj Gupta ba6a8b6aa4
[docs] Update family-plans.md (#1123)
## Description

## Tests
2024-03-17 11:30:35 +05:30
Neeraj Gupta 12b9ac4db6
[server] Rate limit (#1121)
## Description

## Tests
2024-03-17 09:59:59 +05:30
Neeraj Gupta b78b2fe715
Delete yarn.lock 2024-03-16 23:57:05 +05:30
Vishnu Mohandas a5340764a8
[mobile][photos] Share to multiple people at once (#1116)
[mobile][photos] Share to multiple people at once
2024-03-16 00:07:12 +05:30
Vishnu Mohandas bf3b257344
[mobile] Enhance ML (#1114)
## Description
- Increase the interaction timeout to 15s
- Make sure that models aren't downloaded over mobile data, and that it
resumes initialization when network conditions are favorable

## Tests
- [x] Tested manually
2024-03-16 00:05:29 +05:30
ashilkn 64814ef82f minor fixes 2024-03-15 21:07:38 +05:30
ashilkn bb622bfcd0 fix typo in file name 2024-03-15 20:49:51 +05:30
ashilkn 07c41c4c92 extract strings 2024-03-15 20:22:15 +05:30
Vishnu Mohandas 11ccb37382
[server] Enhancements for self hosters (#1115)
- Disable the example.org domains in the default self-hosted
configuration (saner default)
- Add a new flag to support S3 path style URLs without disabling SSL
(needed for folks who want to run minio as their production S3, without
disabling SSL)

**Tested by**

Running a local cluster with the following `museum.yaml` and verifying
that the path style URLs are kicking in.

```
s3:
    use_path_style_urls: true
```
2024-03-15 17:35:10 +05:30
Manav Rathi 92ae1be40a
Add a new flag to support S3 path style URLs without disabling SSL
The use case for this came up in Discord - someone is running a custom self
hosted instance where they're using MinIO as their "production S3", but it is
not local (so they don't want the clients to connect without SSL). So we need a
way to get MinIO to work, which needs path style URLs, without also disabling
the SSL.
2024-03-15 17:18:48 +05:30
Manav Rathi 87d39ae2dd
Disable the example.org domains in the default self-hosted configuration
People won't be able to get emails, but they can still create accounts on that
domain in the default setup. So just comment it out as a saner default.
2024-03-15 17:09:40 +05:30
vishnukvmd 14c75333f3 Simplify states 2024-03-15 16:49:02 +05:30
vishnukvmd 7941d4bcb6 Skip model downloads over mobile data 2024-03-15 16:36:45 +05:30
ashilkn ed2e3bae0d clean up 2024-03-15 16:21:04 +05:30
ashilkn 1e8f772280 feat(share-to-multi-contacts-at-once): multiple changes in one commit due mistakes when commiting
- Change 'Add viewer' buttons logic to work with the new UI.
- Long press on an email to verify.
- Filter suggestions list with the text entered in 'Enter email' text field.
2024-03-15 15:47:14 +05:30
Vishnu Mohandas ebbdf8335b
[auth] New translations (#1111)
New translations from
[Crowdin](https://crowdin.com/project/ente-authenticator-app)
2024-03-15 13:37:42 +05:30
Manav Rathi d488924f78
[infra] Remind about needing to also enable node-exporter (#1113) 2024-03-15 13:06:56 +05:30
Manav Rathi 5841aefb75
[infra] Remind about needing to also enable node-exporter 2024-03-15 13:06:07 +05:30
Manav Rathi 1874053004
[docs] Mention submodules in the community external S3 guide (#1112)
Someone got confused about this missing instruction in Discord. Have
added the submodule step, and also called out that it might be a good
idea to also refer to the project READMEs in case this guide in the
future drifts out of sync.
2024-03-15 13:03:04 +05:30
Manav Rathi bd75eba941
[docs] Mention submodules in the community external S3 guide 2024-03-15 13:00:15 +05:30
ashilkn a4985116b8 feat(share-to-multi-contacts-at-once): change data structure of selected emails from List to Set to avoid duplicates 2024-03-15 12:53:32 +05:30
ashilkn 487be4a451 feat(share-to-multi-contacts-at-once): change state to selected state of an existing email if an already existing email in the list is added from 'add new email' 2024-03-15 12:44:54 +05:30
ashilkn 987250d4f3 feat(share-to-multi-contacts-at-once): add new email to list below with selected state 2024-03-15 12:34:30 +05:30
ashilkn 0b6d44eb99 feat(share-to-multi-contacts-at-once): make list of suggested users a state variable 2024-03-15 11:21:21 +05:30
Manav Rathi 53e4b490cc
[web] New translations (#1110)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-03-15 09:01:33 +05:30
Crowdin Bot 2f86fbdd95 New Crowdin translations by GitHub Action 2024-03-15 02:03:25 +00:00
Crowdin Bot 123fc8a883 New Crowdin translations by GitHub Action 2024-03-15 01:37:14 +00:00
Manav Rathi cd9c6f713a
[infra] Add more details about services (#1109)
- Import the existing DesktopDistribute notes
- Define services
- Add prometheus and promtail definitions
2024-03-14 22:33:26 +05:30
Manav Rathi 12bdbcfbdc
npx prettier --config ../docs/.prettierrc.json --write '**/*.md' 2024-03-14 22:33:00 +05:30
Manav Rathi dc29ab496f
Add prometheus and promtail definitions 2024-03-14 21:56:36 +05:30
Ashil dc2474801c
[photos][mobile]Update home_widget git dependency URL (#1098) 2024-03-14 21:23:53 +05:30
Manav Rathi 477e3fee80
Define services 2024-03-14 21:18:38 +05:30
Manav Rathi b79f8347b6
Import the existing DesktopDistribute notes 2024-03-14 20:31:47 +05:30
Manav Rathi 74a2cd7fe4
[mobile] Update the README link to GitHub APK for photos (#1108) 2024-03-14 18:23:44 +05:30
Manav Rathi 7aed641189
Also update the links in the fastlane descriptions 2024-03-14 18:22:51 +05:30
Manav Rathi ddeafe0749
[mobile] Update the link to GitHub APK for photos 2024-03-14 18:16:01 +05:30
Manav Rathi 0472cde0cb
[infra] Import copycat db (#1107)
- Create infra directory
- Import the code for copycat-db
- Update its paths for the monorepo
- Fix up its GitHub workflow for the monorepo (untested yet)
2024-03-14 17:35:38 +05:30
Manav Rathi 7ddfeb93dd
Fix up the workflow 2024-03-14 17:32:54 +05:30
Manav Rathi aaffc740bc
Update paths 2024-03-14 17:29:11 +05:30
Manav Rathi 3e38d56579
Import the code for copycat-db 2024-03-14 17:20:00 +05:30
Manav Rathi 6e9893e5c5
Create infra directory 2024-03-14 17:14:47 +05:30
Manav Rathi 678879e5fd
[server] Move the server related gitattributes within that folder (#1106)
I mistakenly assumed that the gitattributes file can only be at the top
level. However, this doesn't seem to be the case - I noticed this in a
recent PR - https://github.com/ente-io/ente/pull/1104/

And it is indeed documented:

> When deciding what attributes are assigned to a path, Git ....
.gitattributes file in the same directory as the path in question. ..
>
> - https://git-scm.com/docs/gitattributes

Ref:
https://stackoverflow.com/questions/71784062/can-we-have-multiple-gitattributes-files-in-different-repo-subfolders
2024-03-14 16:48:08 +05:30
vishnukvmd 22685ae911 Increase interaction timeout to 15s 2024-03-14 16:35:38 +05:30
Manav Rathi 966cc697e7
[server] Move the server related gitattributes within that folder
I mistakenly assumed that the gitattributes file can only be at the top
level. However, this doesn't seem to be the case - I noticed this in a recent PR
- https://github.com/ente-io/ente/pull/1104/files.

And it is indeed documented:

> When deciding what attributes are assigned to a path, Git .... .gitattributes
> file in the same directory as the path in question. ..
>
> - https://git-scm.com/docs/gitattributes

Ref: https://stackoverflow.com/questions/71784062/can-we-have-multiple-gitattributes-files-in-different-repo-subfolders
2024-03-14 16:35:36 +05:30
Manav Rathi 3d23a3b21a
[server] Improve the architecture diagram (#1105)
Add a dotted arrow between museum and the hot object storage to indicate
that clients talk directly to the primary S3 storage.

This has confused some users who were trying to setup self-hosting, them
not realizing that the minio buckets need to be accessible outside the
container.

The actual flow is - for both GET and PUT, museum conjures up pre-signed
URLs by talking to the S3 bucket, and vends these pre-signed URLs back
to the client. Thereafter though (unless routed via a Cloudflare worker,
which is not the case when self-hosting), the clients directly connect
to this presigned URL.

Maybe too much information to convey with a single dotted arrow, but at
least it'll give a hint that there is a direct connection there
somewhere.
2024-03-14 16:31:10 +05:30
Neeraj Gupta ffae4ae99b
[cli] Admin APIs for list-users, disable-2fa, & delete-user (#1104)
## Description
Also made it optional to pass the admin-user when there's only one
account is configured.

## Tests

Tested locally
2024-03-14 16:26:31 +05:30
github-actions[bot] a010a90ed6
[mobile] New translations (#1092)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-app)

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-03-14 16:24:13 +05:30