File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ Create a `.env` file in the project root with the following variables:
2929| ` ES_PASSWORD ` | ✅ | - | OpenSearch authentication password |
3030| ` ES_USE_TLS ` | ❌ | ` false ` | Enable TLS/SSL connection (` true ` or ` false ` ) |
3131| ` ES_CERT_PATH ` | ⚠️ | - | Path to CA certificate file (required if ` ES_USE_TLS=true ` ) |
32- | ` UBI_STORE_NAME ` | ❌ | ` .ubi_queries ` | OpenSearch index name for UBI query storage |
3332| ` PORT ` | ❌ | ` 3000 ` | HTTP server port |
3433| ` CORS_DOMAINS ` | ❌ | ` * ` | Comma-separated list of allowed CORS origins |
3534
@@ -42,7 +41,6 @@ ES_USERNAME=search-user
4241ES_PASSWORD=your-secure-password
4342ES_USE_TLS=true
4443ES_CERT_PATH=/path/to/ca-cert.pem
45- UBI_STORE_NAME=.ubi_queries
4644PORT=3000
4745CORS_DOMAINS=https://example.com,https://app.example.com
4846```
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ export class AppService implements OnApplicationBootstrap {
1212 private readonly logger = new Logger ( AppService . name )
1313 private readonly opensearchClient : Client
1414 private readonly searchIndexName : string
15- private readonly ubiStoreName : string
1615 private readonly HIGHLIGHT_HTML_TAG = 'strong'
1716
1817 constructor (
@@ -23,7 +22,6 @@ export class AppService implements OnApplicationBootstrap {
2322 ES_PASSWORD : string
2423 ES_USE_TLS : string
2524 ES_CERT_PATH : string
26- UBI_STORE_NAME : string
2725 } >
2826 ) {
2927 const searchIndexName = this . config . get ( 'SEARCH_INDEX_NAME' , { infer : true } )
@@ -32,8 +30,6 @@ export class AppService implements OnApplicationBootstrap {
3230 }
3331 this . searchIndexName = searchIndexName
3432
35- this . ubiStoreName = this . config . get ( 'UBI_STORE_NAME' , { infer : true } ) ?? '.ubi_queries'
36-
3733 const esHost = this . config . get ( 'ES_HOST' , { infer : true } )
3834 if ( ! esHost ) {
3935 throw new Error ( 'ES_HOST is not defined in the configuration' )
You can’t perform that action at this time.
0 commit comments