Skip to content

Commit d7add5e

Browse files
authored
Merge pull request #1293 from RedisInsight/bugfix/RI-3656_docker_plugins
#RI-3656-add plugins to static server
2 parents 0975e0e + 74aec79 commit d7add5e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

redisinsight/api/src/modules/statics-management/statics-management.module.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,27 @@ const CONTENT_CONFIG = config.get('content');
3434
fallthrough: false,
3535
},
3636
}),
37+
ServeStaticModule.forRoot({
38+
serveRoot: SERVER_CONFIG.defaultPluginsUri,
39+
rootPath: join(PATH_CONFIG.defaultPlugins),
40+
serveStaticOptions: {
41+
fallthrough: false,
42+
},
43+
}),
44+
ServeStaticModule.forRoot({
45+
serveRoot: SERVER_CONFIG.customPluginsUri,
46+
rootPath: join(PATH_CONFIG.customPlugins),
47+
serveStaticOptions: {
48+
fallthrough: false,
49+
},
50+
}),
51+
ServeStaticModule.forRoot({
52+
serveRoot: SERVER_CONFIG.pluginsAssetsUri,
53+
rootPath: join(PATH_CONFIG.pluginsAssets),
54+
serveStaticOptions: {
55+
fallthrough: false,
56+
},
57+
}),
3758
],
3859
providers: [
3960
{

0 commit comments

Comments
 (0)