Skip to content
Snippets Groups Projects
Commit 171ef176 authored by OZGCloud's avatar OZGCloud
Browse files

Merge pull request 'set env SERVER_TOMCAT_MAX-SWALLOW-SIZE -1' (#97) from...

Merge pull request 'set env SERVER_TOMCAT_MAX-SWALLOW-SIZE -1' (#97) from env-fileupload into master
parents f0a848ec 007bd17b
Branches
Tags
No related merge requests found
......@@ -125,6 +125,8 @@ spec:
value: {{.Values.antragsraum.servlet.maxFileSize }}
- name: SPRING_SERVLET_MULTIPART_MAX-REQUEST-SIZE
value: {{.Values.antragsraum.servlet.maxRequestSize }}
- name: SERVER_TOMCAT_MAX-SWALLOW-SIZE
value: {{((.Values.antragsraum).tomcat).maxSwallowSize }}
- name: OZGCLOUD_JWT_SECRET
valueFrom:
......
......@@ -36,3 +36,5 @@ antragsraum:
servlet:
maxRequestSize: 50MB
maxFileSize: 30MB
tomcat:
maxSwallowSize: -1
......@@ -206,12 +206,19 @@ tests:
content:
name: SPRING_SERVLET_MULTIPART_MAX-REQUEST-SIZE
value: 50MB
- contains:
path: spec.template.spec.containers[0].env
content:
name: SERVER_TOMCAT_MAX-SWALLOW-SIZE
value: -1
- it: should set spring servlet envs
set:
antragsraum:
servlet:
maxRequestSize: 40MB
maxFileSize: 35MB
tomcat:
maxSwallowSize: 50MB
asserts:
- contains:
path: spec.template.spec.containers[0].env
......@@ -223,3 +230,8 @@ tests:
content:
name: SPRING_SERVLET_MULTIPART_MAX-REQUEST-SIZE
value: 40MB
- contains:
path: spec.template.spec.containers[0].env
content:
name: SERVER_TOMCAT_MAX-SWALLOW-SIZE
value: 50MB
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment