Skip to content

Commit 24811da

Browse files
authored
authentik: update nginx proxy config (#739)
1 parent 0edd366 commit 24811da

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

authentik/init.sls

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ create /etc/nginx/sites-available/{{ pillar["authentik"]["domain"] }}.conf:
7272
}
7373
location / {
7474
proxy_pass https://{{ pillar["authentik"]["domain"] | replace(".","_") }};
75-
proxy_http_version 1.1;
75+
proxy_buffer_size 128k;
76+
proxy_buffers 4 256k;
77+
proxy_busy_buffers_size 256k;
78+
proxy_http_version 1.1;
7679
proxy_set_header X-Forwarded-Proto $scheme;
7780
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
7881
proxy_set_header Host $host;
@@ -131,7 +134,10 @@ nginx_files_1:
131134
}
132135
location / {
133136
proxy_pass https://{{ pillar["authentik"]["domain"] | replace(".","_") }};
134-
proxy_http_version 1.1;
137+
proxy_buffer_size 128k;
138+
proxy_buffers 4 256k;
139+
proxy_busy_buffers_size 256k;
140+
proxy_http_version 1.1;
135141
proxy_set_header X-Forwarded-Proto $scheme;
136142
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
137143
proxy_set_header Host $host;

0 commit comments

Comments
 (0)