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