Skip to content

Commit f0928cd

Browse files
Merge pull request #179 from tduf/tdu/fix-test-with-nginx
test: fix nginx to run as non-root user
2 parents 3ec7da0 + e5c84a8 commit f0928cd

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

test/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ def _nginx_config(port, location_options, *, mtls=False):
258258
location_options=_to_nginx_option(location_options),
259259
server_options=_to_nginx_option(server_options),
260260
module_path=os.environ.get('NGINX_MODULES', '/usr/lib/nginx/modules'),
261+
nginx_temp=nginx_temp,
261262
)
262263
proxy_config.write_text(proxy_config_str)
263264

test/nginx/base.conf.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ events { }
1212

1313
http {
1414
access_log /dev/null;
15+
client_body_temp_path ${nginx_temp}/client_temp;
16+
proxy_temp_path ${nginx_temp}/proxy_temp_path;
1517

1618
map $$ssl_client_s_dn $$ssl_client_s_dn_cn {
1719
default "";

0 commit comments

Comments
 (0)