Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(nginx): allow larger OAuth session headers

Tin22ea3b8b8cda
diff --git a/apps/web/nginx.conf b/apps/web/nginx.conf
index ff2e0af1c..0f3ba35f4 100644
--- a/apps/web/nginx.conf
+++ b/apps/web/nginx.conf
@@ -2,6 +2,10 @@ server {
listen 5173;
server_name localhost;
+ # Allow larger OAuth/Better Auth session cookies in request headers.
+ client_header_buffer_size 8k;
+ large_client_header_buffers 4 32k;
+
# Security headers
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "SAMEORIGIN" always;
diff --git a/apps/web/nginx.kaneo.conf b/apps/web/nginx.kaneo.conf
index 449f0c234..1572d863f 100644
--- a/apps/web/nginx.kaneo.conf
+++ b/apps/web/nginx.kaneo.conf
@@ -2,6 +2,10 @@ server {
listen 5173;
server_name localhost;
+ # Allow larger OAuth/Better Auth session cookies in request headers.
+ client_header_buffer_size 8k;
+ large_client_header_buffers 4 32k;
+
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-XSS-Protection "0" always;