Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(web): allow unsecure ssl proxy on file-server #7449

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/generated/api-web/executors/file-server.md
Expand Up @@ -53,6 +53,12 @@ Type: `string`

URL to proxy unhandled requests to.

### secure

Type: `boolean`

True if you want to verify the SSL Certs.

### ssl

Default: `false`
Expand Down
Expand Up @@ -53,6 +53,12 @@ Type: `string`

URL to proxy unhandled requests to.

### secure

Type: `boolean`

True if you want to verify the SSL Certs.

### ssl

Default: `false`
Expand Down
3 changes: 3 additions & 0 deletions packages/web/src/executors/file-server/file-server.impl.ts
Expand Up @@ -26,6 +26,9 @@ function getHttpServerArgs(options: Schema) {
if (options.proxyUrl) {
args.push(`-P ${options.proxyUrl}`);
}
if (typeof options.secure === 'boolean') {
args.push(`--proxy-options.secure ${options.secure}`);
}
return args;
}

Expand Down
1 change: 1 addition & 0 deletions packages/web/src/executors/file-server/schema.d.ts
Expand Up @@ -5,6 +5,7 @@ export interface Schema {
sslKey?: string;
sslCert?: string;
proxyUrl?: string;
secure?: boolean;
buildTarget: string;
parallel: boolean;
maxParallel?: number;
Expand Down
4 changes: 4 additions & 0 deletions packages/web/src/executors/file-server/schema.json
Expand Up @@ -48,6 +48,10 @@
"proxyUrl": {
"type": "string",
"description": "URL to proxy unhandled requests to."
},
"secure": {
"type": "boolean",
"description": "True if you want to verify the SSL Certs."
}
},
"additionalProperties": false,
Expand Down