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