fix: accept more headers and bigger requests for browsers
ci/woodpecker/push/docker Pipeline was successful Details

lsm
Jef Roosens 2023-07-21 12:20:27 +02:00
parent 101172aed6
commit a6b407ebaf
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
3 changed files with 32 additions and 2 deletions

30
docker-compose.yml 100644
View File

@ -0,0 +1,30 @@
version: '3.4'
services:
lander:
image: 'lander-test'
build:
context: .
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.lander.rule=Host(`lander.docker.localhost`)'
- 'traefik.http.routers.lander.entrypoints=web'
- 'traefik.http.services.lander.loadbalancer.server.port=18080'
environment:
- 'LANDER_API_KEY=test'
volumes:
- './data:/data'
traefik:
image: 'traefik:2.10'
command:
# Enabling Docker provider
- "--api.insecure=true"
- "--providers.docker=true"
- '--entrypoints.web.address=:80'
- "--providers.docker.exposedbydefault=false"
ports:
- '80:80'
- '8080:8080'
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"

View File

@ -6,7 +6,7 @@
#include <stdlib.h>
// Size of the read and write buffers for each connection, in bytes
#define EVENT_LOOP_BUFFER_SIZE 1024
#define EVENT_LOOP_BUFFER_SIZE 2048
/**
* State of a connection

View File

@ -9,7 +9,7 @@
#include "http/types.h"
#include "picohttpparser.h"
#define HTTP_MAX_ALLOWED_HEADERS 16
#define HTTP_MAX_ALLOWED_HEADERS 32
#define HTTP_MAX_REGEX_GROUPS 4
/**