@alxia/create 0.7.0 → 0.7.2
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/docs/guide.md +9 -0
- package/package.json +5 -5
package/docs/guide.md
CHANGED
|
@@ -1084,6 +1084,15 @@ your own proxy's network
|
|
|
1084
1084
|
TRUSTED_PROXIES=cloudflare,172.16.0.0/12 bun start
|
|
1085
1085
|
```
|
|
1086
1086
|
|
|
1087
|
+
Behind a Cloudflare Tunnel (`cloudflared` and the reverse proxy on one docker
|
|
1088
|
+
network), Cloudflare's ranges never appear in the chain: list the network
|
|
1089
|
+
alone and leave the keyword out
|
|
1090
|
+
([why](https://github.com/softistx/alxia/blob/develop/packages/core/docs/guide/serving.md#behind-a-cloudflare-tunnel)):
|
|
1091
|
+
|
|
1092
|
+
```sh
|
|
1093
|
+
TRUSTED_PROXIES=172.16.0.0/12 bun start
|
|
1094
|
+
```
|
|
1095
|
+
|
|
1087
1096
|
- **From a trusted proxy**, `X-Forwarded-For` sets `ctx.ip`, read from the
|
|
1088
1097
|
right, and `X-Forwarded-Proto` and `X-Forwarded-Host` give
|
|
1089
1098
|
`originalUrl(ctx)`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alxia/create",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Start an alxia app: `bun create @alxia` writes a minimal API, a spec-first one, a GraphQL one, or React Router's official template served by alxia",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@alxia/core": "^0.
|
|
44
|
+
"@alxia/core": "^0.23.0",
|
|
45
45
|
"@alxia/env": "^0.5.0",
|
|
46
|
-
"@alxia/graphql": "^0.
|
|
47
|
-
"@alxia/openapi": "^0.6.
|
|
48
|
-
"@alxia/react-router": "^0.
|
|
46
|
+
"@alxia/graphql": "^0.16.2",
|
|
47
|
+
"@alxia/openapi": "^0.6.18",
|
|
48
|
+
"@alxia/react-router": "^0.68.0",
|
|
49
49
|
"@graphql-codegen/cli": "7.4.3",
|
|
50
50
|
"@graphql-codegen/typescript": "6.1.0",
|
|
51
51
|
"@graphql-codegen/typescript-resolvers": "6.1.0",
|