Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Merge remote-tracking branch 'upstream/main' into embed_selfhosting_docs

Anand Baburajan5761717d06b9
diff --cc docs/docs/self-hosting/installation/manual.md
index 37b71dc2cf,3ebed24660..afaa685ffb
--- a/docs/docs/self-hosting/installation/manual.md
+++ b/docs/docs/self-hosting/installation/manual.md
@@@ -233,22 -228,16 +233,22 @@@ git clone https://github.com/ente-io/en
:3005 {
root * /var/www/ente/apps/out/share
file_server
- @root {
- path /
- }
- handle @root {
- try_files /index.html
- }
- try_files {path} {path}.html /404.html
+ try_files {path} {path}.html /index.html
}
+
+ :3006 {
+ root * /var/www/ente/apps/out/embed
+ file_server
+ try_files {path} {path}.html /index.html
+ }
```
+ ::: tip Important for Share App
+
+ The share web app (Public Locker) specifically requires all routes to be served through `/index.html` as it uses client-side routing with a single entry point. The `try_files` directive with `/index.html` as the fallback is essential for proper functionality. Without this configuration, direct links to shared albums and routes will result in 404 errors.
+
+ :::
+
The web application for Ente Photos should be accessible at
http://localhost:3000, check out the
[default ports](/self-hosting/installation/env-var#ports) for more
diff --cc web/Dockerfile
index 503a51f256,c3d82421d6..05246aa30d
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@@ -53,13 -51,8 +53,12 @@@ server
}
server {
listen 3005; root /out/share;
- location = / { try_files /index.html =404; }
- location / { try_files \$uri \$uri.html /404.html; }
+ location / { try_files \$uri \$uri.html /index.html; }
}
+server {
+ listen 3006; root /out/embed;
+ location / { try_files \$uri \$uri.html /index.html; }
+}
EOF
EXPOSE 3000