Skip to content

Commit

Permalink
feat: support customising the proxy host
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Jun 26, 2022
1 parent 1a8a82f commit d281d4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/dsl/verifier/proxy/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ export interface ProxyOptions {
validateSSL?: boolean;
changeOrigin?: boolean;
providerBaseUrl: string;
proxyHost?: string;
}
4 changes: 4 additions & 0 deletions src/dsl/verifier/verifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export class Verifier {
this.config.validateSSL = true;
}

if (this.config.proxyHost) {
this.address = `http://${this.config.proxyHost}`;
}

if (this.config.changeOrigin === undefined) {
this.config.changeOrigin = false;

Expand Down

0 comments on commit d281d4f

Please sign in to comment.