@@ -1,4 +1,4 @@
|
||||
FROM denoland/deno:ubuntu-2.5.2
|
||||
FROM denoland/deno:ubuntu-2.5.3
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ services:
|
||||
|
||||
# NOTE: If you don't want to use the CardDav/CalDav servers, you can comment/remove this service.
|
||||
radicale:
|
||||
image: tomsquest/docker-radicale:3.5.6.0
|
||||
image: tomsquest/docker-radicale:3.5.7.0
|
||||
ports:
|
||||
- 5232:5232
|
||||
init: true
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
website:
|
||||
image: ghcr.io/bewcloud/bewcloud:v2.6.1
|
||||
image: ghcr.io/bewcloud/bewcloud:v2.7.0
|
||||
restart: always
|
||||
ports:
|
||||
- 127.0.0.1:8000:8000
|
||||
@@ -32,7 +32,7 @@ services:
|
||||
|
||||
# NOTE: If you don't want to use the CardDav/CalDav servers, you can comment/remove this service.
|
||||
radicale:
|
||||
image: tomsquest/docker-radicale:3.5.6.0
|
||||
image: tomsquest/docker-radicale:3.5.7.0
|
||||
# NOTE: uncomment below only if you need to connect to the CardDav/CalDav servers from outside the container
|
||||
# ports:
|
||||
# - 127.0.0.1:5232:5232
|
||||
|
||||
@@ -22,7 +22,7 @@ export class AppConfig {
|
||||
files: {
|
||||
rootPath: 'data-files',
|
||||
allowPublicSharing: false,
|
||||
allowDirectoryDownloads: true,
|
||||
allowDirectoryDownloads: false,
|
||||
},
|
||||
core: {
|
||||
enabledApps: ['news', 'notes', 'photos', 'expenses', 'contacts', 'calendar'],
|
||||
|
||||
@@ -51,7 +51,9 @@ export const handler: Handlers<Data, FreshContextState> = {
|
||||
|
||||
if (code !== 0) {
|
||||
const errorText = new TextDecoder().decode(stderr);
|
||||
|
||||
console.error('Zip command failed:', errorText);
|
||||
|
||||
return new Response('Error creating zip archive', { status: 500 });
|
||||
}
|
||||
|
||||
@@ -65,9 +67,11 @@ export const handler: Handlers<Data, FreshContextState> = {
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Error creating directory zip:', error);
|
||||
if (error.message === 'Invalid file path') {
|
||||
|
||||
if ((error as Error).message === 'Invalid file path') {
|
||||
return new Response('Invalid directory path', { status: 400 });
|
||||
}
|
||||
|
||||
return new Response('Error creating zip archive', { status: 500 });
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user