providers/proxy: set proxy-size for nginx for larger response

This commit is contained in:
Jens Langhammer 2020-12-28 00:45:53 +01:00
parent a6d0c8c26c
commit dc16a8a4c9
4 changed files with 5 additions and 2 deletions

View file

@ -154,6 +154,7 @@ class DockerController(BaseController):
),
"AUTHENTIK_TOKEN": self.outpost.token.key,
},
"labels": self._get_labels(),
}
},
}

View file

@ -74,11 +74,13 @@ class IngressReconciler(KubernetesObjectReconciler[NetworkingV1beta1Ingress]):
# goes to the same pod
"nginx.ingress.kubernetes.io/affinity": "cookie",
"traefik.ingress.kubernetes.io/affinity": "true",
"nginx.ingress.kubernetes.io/proxy-buffers-number": "4",
"nginx.ingress.kubernetes.io/proxy-buffer-size": "16k",
}
annotations.update(
self.controller.outpost.config.kubernetes_ingress_annotations
)
return dict()
return annotations
def get_reference_object(self) -> NetworkingV1beta1Ingress:
"""Get deployment object for outpost"""

View file

@ -7,7 +7,7 @@ from authentik.providers.proxy.models import ProxyProvider
class ProxyProviderForm(forms.ModelForm):
"""Security Gateway Provider form"""
"""Proxy Provider form"""
instance: ProxyProvider