unplugin-https-reverse-proxy 1.0.0-beta.20 → 1.0.0-beta.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.
- package/dist/{chunk-I6DP2OII.js → chunk-KVE7AVSI.js} +6 -1
- package/dist/esbuild.cjs +6 -1
- package/dist/esbuild.js +1 -1
- package/dist/index.cjs +6 -1
- package/dist/index.js +1 -1
- package/dist/nuxt.cjs +6 -1
- package/dist/nuxt.js +1 -1
- package/dist/rollup.cjs +6 -1
- package/dist/rollup.js +1 -1
- package/dist/rspack.cjs +6 -1
- package/dist/rspack.js +1 -1
- package/dist/vite.cjs +6 -1
- package/dist/vite.js +1 -1
- package/dist/webpack.cjs +6 -1
- package/dist/webpack.js +1 -1
- package/package.json +1 -1
- package/src/caddy/index.ts +6 -2
|
@@ -392,13 +392,18 @@ var CaddyInstant = class {
|
|
|
392
392
|
${target.split(":")[0]}${https ? "" : ":80"} {
|
|
393
393
|
${https ? "tls internal" : ""}
|
|
394
394
|
reverse_proxy http://${source} {
|
|
395
|
-
health_uri
|
|
395
|
+
health_uri ${base}
|
|
396
396
|
health_interval 2s
|
|
397
397
|
health_timeout 5s
|
|
398
398
|
fail_duration 2s
|
|
399
399
|
unhealthy_status 502 503 504 404
|
|
400
400
|
lb_try_duration 3s
|
|
401
401
|
lb_try_interval 300ms
|
|
402
|
+
health_headers {
|
|
403
|
+
Accept text/html
|
|
404
|
+
Accept-Encoding gzip, deflate, br
|
|
405
|
+
User-Agent Caddy-Health-Check
|
|
406
|
+
}
|
|
402
407
|
|
|
403
408
|
@error status 502 503 504 404
|
|
404
409
|
handle_response @error {
|
package/dist/esbuild.cjs
CHANGED
|
@@ -461,13 +461,18 @@ var CaddyInstant = class {
|
|
|
461
461
|
${target.split(":")[0]}${https ? "" : ":80"} {
|
|
462
462
|
${https ? "tls internal" : ""}
|
|
463
463
|
reverse_proxy http://${source} {
|
|
464
|
-
health_uri
|
|
464
|
+
health_uri ${base}
|
|
465
465
|
health_interval 2s
|
|
466
466
|
health_timeout 5s
|
|
467
467
|
fail_duration 2s
|
|
468
468
|
unhealthy_status 502 503 504 404
|
|
469
469
|
lb_try_duration 3s
|
|
470
470
|
lb_try_interval 300ms
|
|
471
|
+
health_headers {
|
|
472
|
+
Accept text/html
|
|
473
|
+
Accept-Encoding gzip, deflate, br
|
|
474
|
+
User-Agent Caddy-Health-Check
|
|
475
|
+
}
|
|
471
476
|
|
|
472
477
|
@error status 502 503 504 404
|
|
473
478
|
handle_response @error {
|
package/dist/esbuild.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -461,13 +461,18 @@ var CaddyInstant = class {
|
|
|
461
461
|
${target.split(":")[0]}${https ? "" : ":80"} {
|
|
462
462
|
${https ? "tls internal" : ""}
|
|
463
463
|
reverse_proxy http://${source} {
|
|
464
|
-
health_uri
|
|
464
|
+
health_uri ${base}
|
|
465
465
|
health_interval 2s
|
|
466
466
|
health_timeout 5s
|
|
467
467
|
fail_duration 2s
|
|
468
468
|
unhealthy_status 502 503 504 404
|
|
469
469
|
lb_try_duration 3s
|
|
470
470
|
lb_try_interval 300ms
|
|
471
|
+
health_headers {
|
|
472
|
+
Accept text/html
|
|
473
|
+
Accept-Encoding gzip, deflate, br
|
|
474
|
+
User-Agent Caddy-Health-Check
|
|
475
|
+
}
|
|
471
476
|
|
|
472
477
|
@error status 502 503 504 404
|
|
473
478
|
handle_response @error {
|
package/dist/index.js
CHANGED
package/dist/nuxt.cjs
CHANGED
|
@@ -463,13 +463,18 @@ var CaddyInstant = class {
|
|
|
463
463
|
${target.split(":")[0]}${https ? "" : ":80"} {
|
|
464
464
|
${https ? "tls internal" : ""}
|
|
465
465
|
reverse_proxy http://${source} {
|
|
466
|
-
health_uri
|
|
466
|
+
health_uri ${base}
|
|
467
467
|
health_interval 2s
|
|
468
468
|
health_timeout 5s
|
|
469
469
|
fail_duration 2s
|
|
470
470
|
unhealthy_status 502 503 504 404
|
|
471
471
|
lb_try_duration 3s
|
|
472
472
|
lb_try_interval 300ms
|
|
473
|
+
health_headers {
|
|
474
|
+
Accept text/html
|
|
475
|
+
Accept-Encoding gzip, deflate, br
|
|
476
|
+
User-Agent Caddy-Health-Check
|
|
477
|
+
}
|
|
473
478
|
|
|
474
479
|
@error status 502 503 504 404
|
|
475
480
|
handle_response @error {
|
package/dist/nuxt.js
CHANGED
package/dist/rollup.cjs
CHANGED
|
@@ -461,13 +461,18 @@ var CaddyInstant = class {
|
|
|
461
461
|
${target.split(":")[0]}${https ? "" : ":80"} {
|
|
462
462
|
${https ? "tls internal" : ""}
|
|
463
463
|
reverse_proxy http://${source} {
|
|
464
|
-
health_uri
|
|
464
|
+
health_uri ${base}
|
|
465
465
|
health_interval 2s
|
|
466
466
|
health_timeout 5s
|
|
467
467
|
fail_duration 2s
|
|
468
468
|
unhealthy_status 502 503 504 404
|
|
469
469
|
lb_try_duration 3s
|
|
470
470
|
lb_try_interval 300ms
|
|
471
|
+
health_headers {
|
|
472
|
+
Accept text/html
|
|
473
|
+
Accept-Encoding gzip, deflate, br
|
|
474
|
+
User-Agent Caddy-Health-Check
|
|
475
|
+
}
|
|
471
476
|
|
|
472
477
|
@error status 502 503 504 404
|
|
473
478
|
handle_response @error {
|
package/dist/rollup.js
CHANGED
package/dist/rspack.cjs
CHANGED
|
@@ -460,13 +460,18 @@ var CaddyInstant = class {
|
|
|
460
460
|
${target.split(":")[0]}${https ? "" : ":80"} {
|
|
461
461
|
${https ? "tls internal" : ""}
|
|
462
462
|
reverse_proxy http://${source} {
|
|
463
|
-
health_uri
|
|
463
|
+
health_uri ${base}
|
|
464
464
|
health_interval 2s
|
|
465
465
|
health_timeout 5s
|
|
466
466
|
fail_duration 2s
|
|
467
467
|
unhealthy_status 502 503 504 404
|
|
468
468
|
lb_try_duration 3s
|
|
469
469
|
lb_try_interval 300ms
|
|
470
|
+
health_headers {
|
|
471
|
+
Accept text/html
|
|
472
|
+
Accept-Encoding gzip, deflate, br
|
|
473
|
+
User-Agent Caddy-Health-Check
|
|
474
|
+
}
|
|
470
475
|
|
|
471
476
|
@error status 502 503 504 404
|
|
472
477
|
handle_response @error {
|
package/dist/rspack.js
CHANGED
package/dist/vite.cjs
CHANGED
|
@@ -461,13 +461,18 @@ var CaddyInstant = class {
|
|
|
461
461
|
${target.split(":")[0]}${https ? "" : ":80"} {
|
|
462
462
|
${https ? "tls internal" : ""}
|
|
463
463
|
reverse_proxy http://${source} {
|
|
464
|
-
health_uri
|
|
464
|
+
health_uri ${base}
|
|
465
465
|
health_interval 2s
|
|
466
466
|
health_timeout 5s
|
|
467
467
|
fail_duration 2s
|
|
468
468
|
unhealthy_status 502 503 504 404
|
|
469
469
|
lb_try_duration 3s
|
|
470
470
|
lb_try_interval 300ms
|
|
471
|
+
health_headers {
|
|
472
|
+
Accept text/html
|
|
473
|
+
Accept-Encoding gzip, deflate, br
|
|
474
|
+
User-Agent Caddy-Health-Check
|
|
475
|
+
}
|
|
471
476
|
|
|
472
477
|
@error status 502 503 504 404
|
|
473
478
|
handle_response @error {
|
package/dist/vite.js
CHANGED
package/dist/webpack.cjs
CHANGED
|
@@ -461,13 +461,18 @@ var CaddyInstant = class {
|
|
|
461
461
|
${target.split(":")[0]}${https ? "" : ":80"} {
|
|
462
462
|
${https ? "tls internal" : ""}
|
|
463
463
|
reverse_proxy http://${source} {
|
|
464
|
-
health_uri
|
|
464
|
+
health_uri ${base}
|
|
465
465
|
health_interval 2s
|
|
466
466
|
health_timeout 5s
|
|
467
467
|
fail_duration 2s
|
|
468
468
|
unhealthy_status 502 503 504 404
|
|
469
469
|
lb_try_duration 3s
|
|
470
470
|
lb_try_interval 300ms
|
|
471
|
+
health_headers {
|
|
472
|
+
Accept text/html
|
|
473
|
+
Accept-Encoding gzip, deflate, br
|
|
474
|
+
User-Agent Caddy-Health-Check
|
|
475
|
+
}
|
|
471
476
|
|
|
472
477
|
@error status 502 503 504 404
|
|
473
478
|
handle_response @error {
|
package/dist/webpack.js
CHANGED
package/package.json
CHANGED
package/src/caddy/index.ts
CHANGED
|
@@ -187,19 +187,23 @@ export class CaddyInstant {
|
|
|
187
187
|
consola.success('update host success\n')
|
|
188
188
|
|
|
189
189
|
await this.getCaddyfile()
|
|
190
|
-
|
|
191
190
|
if (!(this.caddyfile || '').includes(`${target.split(':')[0]}${https ? '' : ':80'}`)) {
|
|
192
191
|
this.caddyfile = `${this.caddyfile}
|
|
193
192
|
${target.split(':')[0]}${https ? '' : ':80'} {
|
|
194
193
|
${https ? 'tls internal' : ''}
|
|
195
194
|
reverse_proxy http://${source} {
|
|
196
|
-
health_uri
|
|
195
|
+
health_uri ${base}
|
|
197
196
|
health_interval 2s
|
|
198
197
|
health_timeout 5s
|
|
199
198
|
fail_duration 2s
|
|
200
199
|
unhealthy_status 502 503 504 404
|
|
201
200
|
lb_try_duration 3s
|
|
202
201
|
lb_try_interval 300ms
|
|
202
|
+
health_headers {
|
|
203
|
+
Accept text/html
|
|
204
|
+
Accept-Encoding gzip, deflate, br
|
|
205
|
+
User-Agent Caddy-Health-Check
|
|
206
|
+
}
|
|
203
207
|
|
|
204
208
|
@error status 502 503 504 404
|
|
205
209
|
handle_response @error {
|