pinokiod 3.8.115 → 3.8.117
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.
|
@@ -7,6 +7,7 @@ class Connector {
|
|
|
7
7
|
let connector_name = connector.host + ":" + connector.port
|
|
8
8
|
let listener = "0.0.0.0:PORT_PLACEHOLDER_" + connector_name
|
|
9
9
|
let listener_pointer = connector.host + ":PORT_PLACEHOLDER_" + connector_name
|
|
10
|
+
console.log("CONNECTING", { listener, dial, listener_pointer, match })
|
|
10
11
|
if(!this.router.config.apps.http.servers[connector_name]) {
|
|
11
12
|
this.router.config.apps.http.servers[connector_name] = {
|
|
12
13
|
"listen": [listener],
|
|
@@ -16,12 +17,12 @@ class Connector {
|
|
|
16
17
|
"handler": "reverse_proxy",
|
|
17
18
|
"upstreams": [{ "dial": dial }],
|
|
18
19
|
"headers": {
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
"request": {
|
|
21
|
+
"set": {
|
|
21
22
|
// "X-Forwarded-Proto": ["https"],
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
"X-Forwarded-Host": ["{http.request.host}"]
|
|
24
|
+
}
|
|
25
|
+
},
|
|
25
26
|
"response": {
|
|
26
27
|
"set": {
|
|
27
28
|
"Access-Control-Allow-Origin": ["*"],
|
package/kernel/router/index.js
CHANGED
|
@@ -135,6 +135,7 @@ class Router {
|
|
|
135
135
|
|
|
136
136
|
if (count > 0) {
|
|
137
137
|
let ports = await this.kernel.ports(count)
|
|
138
|
+
console.log("Filling with port cache", { port_cache: this.port_cache, config: this.config })
|
|
138
139
|
let response = Util.fill_object(this.config, /PORT_PLACEHOLDER_.+/, ports, this.port_cache)
|
|
139
140
|
console.log("fill_object response", response)
|
|
140
141
|
this.config = response.result
|