@remnawave/backend-contract 2.1.21 → 2.1.23

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.
@@ -1,3 +1,7 @@
1
1
  export declare const REMNAWAVE_CLIENT_TYPE_HEADER = "X-Remnawave-Client-Type";
2
2
  export declare const REMNAWAVE_CLIENT_TYPE_BROWSER = "browser";
3
+ export declare const REMNAWAVE_BYPASS_HTTPS_RESTRCTIONS: {
4
+ readonly 'x-forwarded-proto': "https";
5
+ readonly 'x-forwarded-for': "127.0.0.1";
6
+ };
3
7
  //# sourceMappingURL=headers.constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"headers.constants.d.ts","sourceRoot":"","sources":["../../../../constants/headers/headers.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAEtE,eAAO,MAAM,6BAA6B,YAAY,CAAC"}
1
+ {"version":3,"file":"headers.constants.d.ts","sourceRoot":"","sources":["../../../../constants/headers/headers.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAEtE,eAAO,MAAM,6BAA6B,YAAY,CAAC;AAEvD,eAAO,MAAM,kCAAkC;;;CAGrC,CAAC"}
@@ -1,5 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.REMNAWAVE_CLIENT_TYPE_BROWSER = exports.REMNAWAVE_CLIENT_TYPE_HEADER = void 0;
3
+ exports.REMNAWAVE_BYPASS_HTTPS_RESTRCTIONS = exports.REMNAWAVE_CLIENT_TYPE_BROWSER = exports.REMNAWAVE_CLIENT_TYPE_HEADER = void 0;
4
4
  exports.REMNAWAVE_CLIENT_TYPE_HEADER = 'X-Remnawave-Client-Type';
5
5
  exports.REMNAWAVE_CLIENT_TYPE_BROWSER = 'browser';
6
+ exports.REMNAWAVE_BYPASS_HTTPS_RESTRCTIONS = {
7
+ 'x-forwarded-proto': 'https',
8
+ 'x-forwarded-for': '127.0.0.1',
9
+ };
@@ -1,5 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.REMNAWAVE_CLIENT_TYPE_BROWSER = exports.REMNAWAVE_CLIENT_TYPE_HEADER = void 0;
3
+ exports.REMNAWAVE_BYPASS_HTTPS_RESTRCTIONS = exports.REMNAWAVE_CLIENT_TYPE_BROWSER = exports.REMNAWAVE_CLIENT_TYPE_HEADER = void 0;
4
4
  exports.REMNAWAVE_CLIENT_TYPE_HEADER = 'X-Remnawave-Client-Type';
5
5
  exports.REMNAWAVE_CLIENT_TYPE_BROWSER = 'browser';
6
+ exports.REMNAWAVE_BYPASS_HTTPS_RESTRCTIONS = {
7
+ 'x-forwarded-proto': 'https',
8
+ 'x-forwarded-for': '127.0.0.1',
9
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.1.21",
3
+ "version": "2.1.23",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",