@abtnode/router-provider 1.8.48 → 1.8.49

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.
@@ -588,10 +588,7 @@ class NginxProvider extends BaseProvider {
588
588
  // eslint-disable-next-line no-template-curly-in-string
589
589
  'set $tail_slash_redirect_flag "${tail_slash_redirect_flag}2";'
590
590
  );
591
- location._addVerbatimBlock(
592
- 'if ($tail_slash_redirect_flag = 12)',
593
- `return 307 $abt_proto://$abt_host${prefix}/$abt_query_string;`
594
- );
591
+ location._addVerbatimBlock('if ($tail_slash_redirect_flag = 12)', `return 307 ${prefix}/$abt_query_string;`);
595
592
  }
596
593
  }
597
594
 
package/lib/nginx/util.js CHANGED
@@ -177,6 +177,8 @@ http {
177
177
  scgi_temp_path ${path.join(tmpDir, 'scgi')};
178
178
  client_max_body_size ${maxBodySize}m;
179
179
 
180
+ absolute_redirect off;
181
+
180
182
  log_format compression '$remote_addr - $remote_user [$time_local] '
181
183
  '"$host" "$request" $status $body_bytes_sent '
182
184
  '"$http_referer" "$http_user_agent" "$http_x_forwarded_for" $request_time';
package/lib/www/502.html CHANGED
@@ -22,7 +22,7 @@
22
22
  <h2>Bad gateway: Upstream Blocklet or Daemon service is not available!</h2>
23
23
  <div>
24
24
  Checkout Blocklet Server Documentation:
25
- <a href="https://docs.arcblock.io/en/abtnode/">https://docs.arcblock.io/en/abtnode/</a>
25
+ <a href="https://developer.blocklet.io/docs">https://developer.blocklet.io/docs</a>
26
26
  </div>
27
27
  </center>
28
28
  </body>
package/lib/www/5xx.html CHANGED
@@ -22,7 +22,7 @@
22
22
  <h2>Something went wrong</h2>
23
23
  <div>
24
24
  Checkout Blocklet Server Documentation:
25
- <a href="https://docs.arcblock.io/en/abtnode/">https://docs.arcblock.io/en/abtnode/</a>
25
+ <a href="https://developer.blocklet.io/docs">https://developer.blocklet.io/docs</a>
26
26
  </div>
27
27
  </center>
28
28
  </body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/router-provider",
3
- "version": "1.8.48",
3
+ "version": "1.8.49",
4
4
  "description": "Routing engine implementations for abt node",
5
5
  "author": "polunzh <polunzh@gmail.com>",
6
6
  "homepage": "https://github.com/ArcBlock/blocklet-server#readme",
@@ -32,10 +32,10 @@
32
32
  "url": "https://github.com/ArcBlock/blocklet-server/issues"
33
33
  },
34
34
  "dependencies": {
35
- "@abtnode/constant": "1.8.48",
36
- "@abtnode/logger": "1.8.48",
37
- "@abtnode/router-templates": "1.8.48",
38
- "@abtnode/util": "1.8.48",
35
+ "@abtnode/constant": "1.8.49",
36
+ "@abtnode/logger": "1.8.49",
37
+ "@abtnode/router-templates": "1.8.49",
38
+ "@abtnode/util": "1.8.49",
39
39
  "axios": "^0.27.2",
40
40
  "debug": "^4.3.4",
41
41
  "find-process": "^1.4.7",
@@ -62,5 +62,5 @@
62
62
  "fs-extra": "^10.1.0",
63
63
  "needle": "^3.1.0"
64
64
  },
65
- "gitHead": "39979d7a059d5f97442ac7d46604391e6656ac8d"
65
+ "gitHead": "627ac4fb21957fcbaf7c2c21e77de0f51ef9e30d"
66
66
  }