@crossdelta/infrastructure 0.6.5 → 0.7.0
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/README.md +8 -1
- package/dist/helpers/otel.d.ts +2 -0
- package/dist/index.cjs +6 -1
- package/dist/index.js +6 -1
- package/dist/runtimes/doks/ingress.d.ts +5 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -60,7 +60,14 @@ import { deployRuntime } from '@crossdelta/infrastructure'
|
|
|
60
60
|
|
|
61
61
|
const runtime = deployRuntime(provider, namespace, {
|
|
62
62
|
nats: { enabled: true, config: { replicas: 1, jetstream: { enabled: true } } },
|
|
63
|
-
ingress: {
|
|
63
|
+
ingress: {
|
|
64
|
+
enabled: true,
|
|
65
|
+
config: {
|
|
66
|
+
nginxConfig: {
|
|
67
|
+
'proxy-buffer-size': '16k', // Increase for large auth cookies/JWTs
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
64
71
|
certManager: { enabled: true, config: { email: 'ops@example.com' } },
|
|
65
72
|
})
|
|
66
73
|
```
|
package/dist/helpers/otel.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export interface OtelConfig {
|
|
|
10
10
|
tracesEndpoint?: pulumi.Input<string>;
|
|
11
11
|
/** OTLP metrics endpoint URL */
|
|
12
12
|
metricsEndpoint?: pulumi.Input<string>;
|
|
13
|
+
/** OTLP logs endpoint URL */
|
|
14
|
+
logsEndpoint?: pulumi.Input<string>;
|
|
13
15
|
/** OTLP headers (e.g., "Authorization=Bearer token") */
|
|
14
16
|
headers?: pulumi.Input<string>;
|
|
15
17
|
/** Deployment environment (e.g., "production", "staging") */
|
package/dist/index.cjs
CHANGED
|
@@ -323,8 +323,10 @@ function deployNginxIngress(provider, config = {}) {
|
|
|
323
323
|
"use-proxy-protocol": "true",
|
|
324
324
|
"real-ip-header": "proxy_protocol"
|
|
325
325
|
},
|
|
326
|
+
"proxy-buffer-size": "8k",
|
|
326
327
|
"worker-processes": "auto",
|
|
327
|
-
"keep-alive": "75"
|
|
328
|
+
"keep-alive": "75",
|
|
329
|
+
...config.nginxConfig
|
|
328
330
|
},
|
|
329
331
|
admissionWebhooks: {
|
|
330
332
|
enabled: false
|
|
@@ -933,6 +935,9 @@ var buildOtelEnv = (serviceName, config) => {
|
|
|
933
935
|
if (config.metricsEndpoint) {
|
|
934
936
|
env.OTEL_EXPORTER_OTLP_METRICS_ENDPOINT = config.metricsEndpoint;
|
|
935
937
|
}
|
|
938
|
+
if (config.logsEndpoint) {
|
|
939
|
+
env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT = config.logsEndpoint;
|
|
940
|
+
}
|
|
936
941
|
if (config.headers) {
|
|
937
942
|
env.OTEL_EXPORTER_OTLP_HEADERS = config.headers;
|
|
938
943
|
}
|
package/dist/index.js
CHANGED
|
@@ -229,8 +229,10 @@ function deployNginxIngress(provider, config = {}) {
|
|
|
229
229
|
"use-proxy-protocol": "true",
|
|
230
230
|
"real-ip-header": "proxy_protocol"
|
|
231
231
|
},
|
|
232
|
+
"proxy-buffer-size": "8k",
|
|
232
233
|
"worker-processes": "auto",
|
|
233
|
-
"keep-alive": "75"
|
|
234
|
+
"keep-alive": "75",
|
|
235
|
+
...config.nginxConfig
|
|
234
236
|
},
|
|
235
237
|
admissionWebhooks: {
|
|
236
238
|
enabled: false
|
|
@@ -839,6 +841,9 @@ var buildOtelEnv = (serviceName, config) => {
|
|
|
839
841
|
if (config.metricsEndpoint) {
|
|
840
842
|
env.OTEL_EXPORTER_OTLP_METRICS_ENDPOINT = config.metricsEndpoint;
|
|
841
843
|
}
|
|
844
|
+
if (config.logsEndpoint) {
|
|
845
|
+
env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT = config.logsEndpoint;
|
|
846
|
+
}
|
|
842
847
|
if (config.headers) {
|
|
843
848
|
env.OTEL_EXPORTER_OTLP_HEADERS = config.headers;
|
|
844
849
|
}
|
|
@@ -22,6 +22,8 @@ export interface NginxIngressConfig {
|
|
|
22
22
|
};
|
|
23
23
|
/** Enable proxy protocol for preserving client IPs (default: true for DO) */
|
|
24
24
|
useProxyProtocol?: boolean;
|
|
25
|
+
/** Custom nginx ConfigMap entries (merged into controller.config) */
|
|
26
|
+
nginxConfig?: Record<string, string>;
|
|
25
27
|
}
|
|
26
28
|
export interface NginxIngressResult {
|
|
27
29
|
/** The Helm release */
|
|
@@ -51,6 +53,9 @@ export interface NginxIngressResult {
|
|
|
51
53
|
* requests: { cpu: '100m', memory: '128Mi' },
|
|
52
54
|
* limits: { cpu: '200m', memory: '256Mi' },
|
|
53
55
|
* },
|
|
56
|
+
* nginxConfig: {
|
|
57
|
+
* 'proxy-buffer-size': '16k',
|
|
58
|
+
* },
|
|
54
59
|
* })
|
|
55
60
|
* ```
|
|
56
61
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossdelta/infrastructure",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@crossdelta/cloudevents": "0.6.
|
|
38
|
+
"@crossdelta/cloudevents": "0.6.8"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@pulumi/digitalocean": "^4.0.0",
|