pinokiod 3.8.14 → 3.8.16
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.
- package/kernel/bin/caddy.js +24 -5
- package/package.json +1 -1
package/kernel/bin/caddy.js
CHANGED
|
@@ -78,7 +78,7 @@ class Caddy {
|
|
|
78
78
|
"handle": [
|
|
79
79
|
{
|
|
80
80
|
"handler": "reverse_proxy",
|
|
81
|
-
"upstreams": [{ "dial": "
|
|
81
|
+
"upstreams": [{ "dial": "127.0.0.1:42000" }]
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
"handler": "headers",
|
|
@@ -97,7 +97,7 @@ class Caddy {
|
|
|
97
97
|
"handle": [
|
|
98
98
|
{
|
|
99
99
|
"handler": "reverse_proxy",
|
|
100
|
-
"upstreams": [{ "dial": "
|
|
100
|
+
"upstreams": [{ "dial": "127.0.0.1:1234" }]
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"handler": "headers",
|
|
@@ -116,7 +116,26 @@ class Caddy {
|
|
|
116
116
|
"handle": [
|
|
117
117
|
{
|
|
118
118
|
"handler": "reverse_proxy",
|
|
119
|
-
"upstreams": [{ "dial": "
|
|
119
|
+
"upstreams": [{ "dial": "127.0.0.1:11434" }]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"handler": "headers",
|
|
123
|
+
"response": {
|
|
124
|
+
"set": {
|
|
125
|
+
"Access-Control-Allow-Origin": ["*"],
|
|
126
|
+
"Access-Control-Allow-Methods": ["GET, POST, OPTIONS, PUT, DELETE"],
|
|
127
|
+
"Access-Control-Allow-Headers": ["*"]
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"match": [{ "host": ["a.pinokio.localhost"] }],
|
|
135
|
+
"handle": [
|
|
136
|
+
{
|
|
137
|
+
"handler": "reverse_proxy",
|
|
138
|
+
"upstreams": [{ "dial": "127.0.0.1:7861" }]
|
|
120
139
|
},
|
|
121
140
|
{
|
|
122
141
|
"handler": "headers",
|
|
@@ -135,7 +154,7 @@ class Caddy {
|
|
|
135
154
|
"handle": [
|
|
136
155
|
{
|
|
137
156
|
"handler": "reverse_proxy",
|
|
138
|
-
"upstreams": [{ "dial": "
|
|
157
|
+
"upstreams": [{ "dial": "127.0.0.1:7861" }]
|
|
139
158
|
},
|
|
140
159
|
{
|
|
141
160
|
"handler": "headers",
|
|
@@ -154,7 +173,7 @@ class Caddy {
|
|
|
154
173
|
"handle": [
|
|
155
174
|
{
|
|
156
175
|
"handler": "reverse_proxy",
|
|
157
|
-
"upstreams": [{ "dial": "
|
|
176
|
+
"upstreams": [{ "dial": "127.0.0.1:7862" }]
|
|
158
177
|
},
|
|
159
178
|
{
|
|
160
179
|
"handler": "headers",
|