Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Nov 22, 2024
1 parent eefc944 commit c47d212
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/https.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ function generateWildcardPatterns(domain: string): string[] {
function generateBaseConfig(options: ReverseProxyConfigs, verbose?: boolean): TlsConfig {
const domains = extractDomains(options)
const sslBase = path.join(os.homedir(), '.stacks', 'ssl')
console.log('config.https', config.https)
const httpsConfig: Partial<CustomTlsConfig> = options.https === true
? {
caCertPath: path.join(sslBase, 'rpx-ca.crt'),
Expand Down
4 changes: 1 addition & 3 deletions src/start.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-console */
import type { SecureServerOptions } from 'node:http2'
import type { ServerOptions } from 'node:https'
import type { BaseReverseProxyConfig, MultiReverseProxyConfig, ProxySetupOptions, ReverseProxyConfigs, ReverseProxyOption, ReverseProxyOptions, SingleReverseProxyConfig, SSLConfig } from './types'
import type { MultiReverseProxyConfig, ProxySetupOptions, ReverseProxyConfigs, ReverseProxyOption, ReverseProxyOptions, SingleReverseProxyConfig, SSLConfig } from './types'
import * as fs from 'node:fs'
import * as http from 'node:http'
import * as https from 'node:https'
Expand Down Expand Up @@ -565,8 +565,6 @@ export async function startProxies(options?: ReverseProxyOptions): Promise<void>

debugLog('proxies', 'Starting proxies setup', isMultiProxyConfig(options) ? options.verbose : options.verbose)

console.log('options', options)

if (options.https) {
await generateCertificate(options as ReverseProxyConfigs)
}
Expand Down

0 comments on commit c47d212

Please sign in to comment.