1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02:00

Moving extension folder within config folder for docker. #743

This commit is contained in:
Patrik J. Braun 2023-11-24 23:42:17 +01:00
parent fc75be1b25
commit 4fe7f31d0e
6 changed files with 277 additions and 262 deletions

View File

@ -21,6 +21,7 @@ ENV NODE_ENV=production \
default-Database-dbFolder=/app/data/db \ default-Database-dbFolder=/app/data/db \
default-Media-folder=/app/data/images \ default-Media-folder=/app/data/images \
default-Media-tempFolder=/app/data/tmp \ default-Media-tempFolder=/app/data/tmp \
default-Extensions-folder=/app/data/config/extensions \
# flagging dockerized environemnt # flagging dockerized environemnt
PI_DOCKER=true PI_DOCKER=true

View File

@ -19,6 +19,7 @@ ENV NODE_ENV=production \
default-Database-dbFolder=/app/data/db \ default-Database-dbFolder=/app/data/db \
default-Media-folder=/app/data/images \ default-Media-folder=/app/data/images \
default-Media-tempFolder=/app/data/tmp \ default-Media-tempFolder=/app/data/tmp \
default-Extensions-folder=/app/data/config/extensions \
# flagging dockerized environemnt # flagging dockerized environemnt
PI_DOCKER=true PI_DOCKER=true

View File

@ -19,6 +19,7 @@ ENV NODE_ENV=production \
default-Database-dbFolder=/app/data/db \ default-Database-dbFolder=/app/data/db \
default-Media-folder=/app/data/images \ default-Media-folder=/app/data/images \
default-Media-tempFolder=/app/data/tmp \ default-Media-tempFolder=/app/data/tmp \
default-Extensions-folder=/app/data/config/extensions \
# flagging dockerized environemnt # flagging dockerized environemnt
PI_DOCKER=true PI_DOCKER=true

View File

@ -23,6 +23,7 @@ ENV NODE_ENV=production \
default-Database-dbFolder=/app/data/db \ default-Database-dbFolder=/app/data/db \
default-Media-folder=/app/data/images \ default-Media-folder=/app/data/images \
default-Media-tempFolder=/app/data/tmp \ default-Media-tempFolder=/app/data/tmp \
default-Extensions-folder=/app/data/config/extensions \
# flagging dockerized environemnt # flagging dockerized environemnt
PI_DOCKER=true PI_DOCKER=true

View File

@ -36,7 +36,7 @@ export class ProjectPathClass {
this.TranscodedFolder = path.join(this.TempFolder, 'tc'); this.TranscodedFolder = path.join(this.TempFolder, 'tc');
this.FacesFolder = path.join(this.TempFolder, 'f'); this.FacesFolder = path.join(this.TempFolder, 'f');
this.DBFolder = this.getAbsolutePath(Config.Database.dbFolder); this.DBFolder = this.getAbsolutePath(Config.Database.dbFolder);
this.ExtensionFolder = path.join(this.Root, 'extensions'); this.ExtensionFolder = this.getAbsolutePath(Config.Extensions.folder);
// create thumbnail folder if not exist // create thumbnail folder if not exist
if (!fs.existsSync(this.TempFolder)) { if (!fs.existsSync(this.TempFolder)) {

View File

@ -1016,6 +1016,17 @@ export class ServerServiceConfig extends ClientServiceConfig {
@SubConfigClass<TAGS>({softReadonly: true}) @SubConfigClass<TAGS>({softReadonly: true})
export class ServerExtensionsConfig extends ClientExtensionsConfig { export class ServerExtensionsConfig extends ClientExtensionsConfig {
@ConfigProperty({
tags: {
name: $localize`Extension folder`,
priority: ConfigPriority.underTheHood,
dockerSensitive: true
},
description: $localize`Folder where the app stores the extensions. Extensions live in their sub-folders.`,
})
folder: string = 'extensions';
@ConfigProperty({volatile: true}) @ConfigProperty({volatile: true})
list: string[] = []; list: string[] = [];