Skip to content

Commit 78049a6

Browse files
committed
feat(stat-reporter): add proxy
1 parent f3589d9 commit 78049a6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/stat-reporter/src/interfaces/nestcord-stat-reporter-options.interface.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Method, RawAxiosRequestHeaders } from 'axios';
1+
import { AxiosProxyConfig, Method, RawAxiosRequestHeaders } from 'axios';
22
import { StatCronExpression } from '../enums';
33

44
export interface ServiceOption {
@@ -39,6 +39,11 @@ export interface NestCordStatReporterOptions {
3939
*/
4040
services: ServiceOption[];
4141

42+
/**
43+
* Proxy config.
44+
*/
45+
proxy?: AxiosProxyConfig;
46+
4247
/**
4348
* If true, skip all jobs.
4449
*/

packages/stat-reporter/src/nestcord-stat-reporter.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export class NestCordStatReporterService implements OnModuleInit {
6363
url: service.url,
6464
data: bodyData,
6565
headers: headerData,
66+
proxy: this.options.proxy,
6667
}),
6768
);
6869

0 commit comments

Comments
 (0)