@push.rocks/smartproxy 3.34.0 → 3.37.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,6 +48,16 @@ export interface IPortProxySettings extends plugins.tls.TlsOptions {
48
48
  extendedKeepAliveLifetime?: number;
49
49
  useNetworkProxy?: number[];
50
50
  networkProxyPort?: number;
51
+ acme?: {
52
+ enabled?: boolean;
53
+ port?: number;
54
+ contactEmail?: string;
55
+ useProduction?: boolean;
56
+ renewThresholdDays?: number;
57
+ autoRenew?: boolean;
58
+ certificateStore?: string;
59
+ skipConfiguredCerts?: boolean;
60
+ };
51
61
  }
52
62
  export declare class PortProxy {
53
63
  private netServers;
@@ -65,6 +75,27 @@ export declare class PortProxy {
65
75
  * Initialize NetworkProxy instance
66
76
  */
67
77
  private initializeNetworkProxy;
78
+ /**
79
+ * Updates the domain configurations for the proxy
80
+ * @param newDomainConfigs The new domain configurations
81
+ */
82
+ updateDomainConfigs(newDomainConfigs: IDomainConfig[]): Promise<void>;
83
+ /**
84
+ * Updates the ACME certificate settings
85
+ * @param acmeSettings New ACME settings
86
+ */
87
+ updateAcmeSettings(acmeSettings: IPortProxySettings['acme']): Promise<void>;
88
+ /**
89
+ * Synchronizes PortProxy domain configurations to NetworkProxy
90
+ * This allows domains configured in PortProxy to be used by NetworkProxy
91
+ */
92
+ private syncDomainConfigsToNetworkProxy;
93
+ /**
94
+ * Requests a certificate for a specific domain
95
+ * @param domain The domain to request a certificate for
96
+ * @returns Promise that resolves to true if the request was successful, false otherwise
97
+ */
98
+ requestCertificate(domain: string): Promise<boolean>;
68
99
  /**
69
100
  * Forwards a TLS connection to a NetworkProxy for handling
70
101
  * @param connectionId - Unique connection identifier