Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/config/src/configProcessor/helpers/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ const azionConfigSchema = {
type: 'string',
enum: WORKLOAD_HTTP_VERSIONS,
},
default: ['http1', 'http2'],
default: ['http1', 'http2', 'http3'],
},
httpPorts: {
type: 'array',
Expand All @@ -1144,10 +1144,10 @@ const azionConfigSchema = {
},
default: {
http: {
versions: ['http1', 'http2'],
versions: ['http1', 'http2', 'http3'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
quicPorts: [443],
},
},
additionalProperties: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ describe('WorkloadProcessConfigStrategy', () => {
},
protocols: {
http: {
versions: ['http1', 'http2'],
versions: ['http1', 'http2', 'http3'],
http_ports: [80],
https_ports: [443],
quic_ports: null,
quic_ports: [443],
},
},
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ class WorkloadProcessConfigStrategy extends ProcessConfigStrategy {
},
protocols: {
http: {
versions: workload.protocols?.http?.versions || ['http1', 'http2'],
versions: workload.protocols?.http?.versions || ['http1', 'http2', 'http3'],
http_ports: workload.protocols?.http?.httpPorts || [80],
https_ports: workload.protocols?.http?.httpsPorts || [443],
quic_ports: workload.protocols?.http?.quicPorts || null,
quic_ports: workload.protocols?.http?.quicPorts || [443],
},
},
mtls: workload.mtls
Expand Down
2 changes: 1 addition & 1 deletion packages/config/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export const WORKLOAD_TLS_VERSIONS = ['', 'tls_1_0', 'tls_1_1', 'tls_1_2', 'tls_

export const WORKLOAD_MTLS_VERIFICATION = ['enforce', 'permissive'] as const;

export const WORKLOAD_HTTP_VERSIONS = ['http1', 'http2'] as const;
export const WORKLOAD_HTTP_VERSIONS = ['http1', 'http2', 'http3'] as const;

// Constantes para Connector V4
export const EDGE_CONNECTOR_TYPES = ['http', 'storage', 'live_ingest'] as const;
Expand Down
2 changes: 1 addition & 1 deletion packages/config/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export type WorkloadInfrastructure = 1 | 2;
export type WorkloadTLSCipher = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
export type WorkloadTLSVersion = '' | 'tls_1_0' | 'tls_1_1' | 'tls_1_2' | 'tls_1_3';
export type WorkloadMTLSVerification = 'enforce' | 'permissive';
export type WorkloadHTTPVersion = 'http1' | 'http2';
export type WorkloadHTTPVersion = 'http1' | 'http2' | 'http3';

// Connector types
export type ConnectorType = 'http' | 'storage' | 'live_ingest';
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/angular/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/astro/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/docusaurus/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/eleventy/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/emscripten/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/gatsby/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/hexo/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/html/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/hugo/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/javascript/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/jekyll/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/next/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/nuxt/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/opennextjs/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/preact/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/qwik/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/react/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/rustwasm/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/stencil/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/svelte/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/typescript/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
8 changes: 0 additions & 8 deletions packages/presets/src/presets/vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ const config: AzionConfig = {
name: '$WORKLOAD_NAME',
active: true,
infrastructure: 1,
protocols: {
http: {
versions: ['http1', 'http2'],
httpPorts: [80],
httpsPorts: [443],
quicPorts: null,
},
},
deployments: [
{
name: '$DEPLOYMENT_NAME',
Expand Down
Loading