dockerise server

This commit is contained in:
Jurgis Sakalauskas
2023-08-04 16:06:47 +03:00
parent 27f76a08f0
commit fe938afa3f
11 changed files with 81 additions and 28 deletions
+5 -2
View File
@@ -7,11 +7,14 @@ export class PathsConfig {
}
public getStaticRequestsLogPath(): string {
return this.getPathByEnvKey('LOG_FILE_REQUESTS');
return join(
'/srv/data/requests-log',
this.configService.getEnv('LOG_FILE_REQUESTS_NAME'),
);
}
public getStaticFolder(): string {
return this.getPathByEnvKey('STATIC_SERVE_FOLDER');
return '/srv/data/static';
}
public getPathByEnvKey(key: string) {