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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-I6DP2OII.js";
3
+ } from "./chunk-KVE7AVSI.js";
4
4
  import "./chunk-2VGRJ3QS.js";
5
5
 
6
6
  // src/esbuild.ts
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
@@ -3,7 +3,7 @@ import {
3
3
  unplugin,
4
4
  unpluginFactory,
5
5
  vitePrintUrls
6
- } from "./chunk-I6DP2OII.js";
6
+ } from "./chunk-KVE7AVSI.js";
7
7
  import "./chunk-2VGRJ3QS.js";
8
8
  export {
9
9
  src_default as default,
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  vitePrintUrls
3
- } from "./chunk-I6DP2OII.js";
3
+ } from "./chunk-KVE7AVSI.js";
4
4
  import {
5
5
  consola,
6
6
  isAdmin
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-I6DP2OII.js";
3
+ } from "./chunk-KVE7AVSI.js";
4
4
  import "./chunk-2VGRJ3QS.js";
5
5
 
6
6
  // src/rollup.ts
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  src_default
3
- } from "./chunk-I6DP2OII.js";
3
+ } from "./chunk-KVE7AVSI.js";
4
4
  import "./chunk-2VGRJ3QS.js";
5
5
 
6
6
  // src/rspack.ts
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-I6DP2OII.js";
3
+ } from "./chunk-KVE7AVSI.js";
4
4
  import "./chunk-2VGRJ3QS.js";
5
5
 
6
6
  // src/vite.ts
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-I6DP2OII.js";
3
+ } from "./chunk-KVE7AVSI.js";
4
4
  import "./chunk-2VGRJ3QS.js";
5
5
 
6
6
  // src/webpack.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unplugin-https-reverse-proxy",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.20",
4
+ "version": "1.0.0-beta.21",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/zcf0508/unplugin-https-reverse-proxy#readme",
@@ -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 {