pinokiod 3.8.19 → 3.8.21

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.
@@ -57,6 +57,12 @@ class Caddy {
57
57
  {
58
58
  "match": [{ "method": ["OPTIONS"] }],
59
59
  "handle": [
60
+ {
61
+ "handler": "request_header",
62
+ "set": {
63
+ "Origin": ["http://127.0.0.1"]
64
+ }
65
+ },
60
66
  {
61
67
  "handler": "headers",
62
68
  "response": {
@@ -97,6 +103,12 @@ class Caddy {
97
103
  {
98
104
  "match": [{ "host": ["l.pinokio.localhost"] }],
99
105
  "handle": [
106
+ {
107
+ "handler": "request_header",
108
+ "set": {
109
+ "Origin": ["http://127.0.0.1"]
110
+ }
111
+ },
100
112
  {
101
113
  "handler": "reverse_proxy",
102
114
  "upstreams": [{ "dial": "127.0.0.1:1234" }]
@@ -117,6 +129,12 @@ class Caddy {
117
129
  {
118
130
  "match": [{ "host": ["o.pinokio.localhost"] }],
119
131
  "handle": [
132
+ {
133
+ "handler": "request_header",
134
+ "set": {
135
+ "Origin": ["http://127.0.0.1"]
136
+ }
137
+ },
120
138
  {
121
139
  "handler": "reverse_proxy",
122
140
  "upstreams": [{ "dial": "127.0.0.1:11434" }]
@@ -137,6 +155,12 @@ class Caddy {
137
155
  {
138
156
  "match": [{ "host": ["a.pinokio.localhost"] }],
139
157
  "handle": [
158
+ {
159
+ "handler": "request_header",
160
+ "set": {
161
+ "Origin": ["http://127.0.0.1"]
162
+ }
163
+ },
140
164
  {
141
165
  "handler": "reverse_proxy",
142
166
  "upstreams": [{ "dial": "127.0.0.1:7860" }]
@@ -157,6 +181,12 @@ class Caddy {
157
181
  {
158
182
  "match": [{ "host": ["b.pinokio.localhost"] }],
159
183
  "handle": [
184
+ {
185
+ "handler": "request_header",
186
+ "set": {
187
+ "Origin": ["http://127.0.0.1"]
188
+ }
189
+ },
160
190
  {
161
191
  "handler": "reverse_proxy",
162
192
  "upstreams": [{ "dial": "127.0.0.1:7861" }]
@@ -177,6 +207,12 @@ class Caddy {
177
207
  {
178
208
  "match": [{ "host": ["c.pinokio.localhost"] }],
179
209
  "handle": [
210
+ {
211
+ "handler": "request_header",
212
+ "set": {
213
+ "Origin": ["http://127.0.0.1"]
214
+ }
215
+ },
180
216
  {
181
217
  "handler": "reverse_proxy",
182
218
  "upstreams": [{ "dial": "127.0.0.1:7862" }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.8.19",
3
+ "version": "3.8.21",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {