Skip to content

Commit b43f910

Browse files
committed
Removes unused ubi store name env var
1 parent 233efcb commit b43f910

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
4241
ES_PASSWORD=your-secure-password
4342
ES_USE_TLS=true
4443
ES_CERT_PATH=/path/to/ca-cert.pem
45-
UBI_STORE_NAME=.ubi_queries
4644
PORT=3000
4745
CORS_DOMAINS=https://example.com,https://app.example.com
4846
```

src/app.service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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')

0 commit comments

Comments
 (0)