Compare commits
1 Commits
v0.1.64-ap
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
c7b9ab18bb |
@@ -7,7 +7,7 @@
|
||||
"contactEmail": "contact@ente.io",
|
||||
"tagline": "Open Source End-to-End Encrypted Photos & Authentication",
|
||||
"upstreamVersion": "1.0.0",
|
||||
"version": "0.1.64",
|
||||
"version": "0.1.66",
|
||||
"healthCheckPath": "/ping",
|
||||
"httpPort": 3080,
|
||||
"memoryLimit": 1073741824,
|
||||
|
40
start.sh
40
start.sh
@@ -702,14 +702,38 @@ cat > "$CADDY_CONFIG" << EOF
|
||||
reverse_proxy localhost:8080
|
||||
}
|
||||
|
||||
# Static files for Next.js assets from all apps
|
||||
handle /_next/* {
|
||||
# Static files for Next.js assets - handle per app
|
||||
handle_path /photos/_next/* {
|
||||
root * /app/web/photos
|
||||
file_server
|
||||
header {
|
||||
Cache-Control "public, max-age=31536000"
|
||||
}
|
||||
}
|
||||
|
||||
handle_path /accounts/_next/* {
|
||||
root * /app/web/accounts
|
||||
file_server
|
||||
header {
|
||||
Cache-Control "public, max-age=31536000"
|
||||
}
|
||||
}
|
||||
|
||||
handle_path /auth/_next/* {
|
||||
root * /app/web/auth
|
||||
file_server
|
||||
header {
|
||||
Cache-Control "public, max-age=31536000"
|
||||
}
|
||||
}
|
||||
|
||||
handle_path /cast/_next/* {
|
||||
root * /app/web/cast
|
||||
file_server
|
||||
header {
|
||||
Cache-Control "public, max-age=31536000"
|
||||
}
|
||||
}
|
||||
|
||||
# Static images and assets (served from photos app by default)
|
||||
handle /images/* {
|
||||
@@ -735,22 +759,22 @@ cat > "$CADDY_CONFIG" << EOF
|
||||
file_server
|
||||
}
|
||||
|
||||
# Accounts app
|
||||
handle_path /accounts/* {
|
||||
# Accounts app - handle both /accounts and /accounts/*
|
||||
handle /accounts* {
|
||||
root * /app/web/accounts
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
}
|
||||
|
||||
# Auth app
|
||||
handle_path /auth/* {
|
||||
# Auth app - handle both /auth and /auth/*
|
||||
handle /auth* {
|
||||
root * /app/web/auth
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
}
|
||||
|
||||
# Cast app
|
||||
handle_path /cast/* {
|
||||
# Cast app - handle both /cast and /cast/*
|
||||
handle /cast* {
|
||||
root * /app/web/cast
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
|
Reference in New Issue
Block a user