nginx-proxy-auto-docker/test/test_nginx-conf/test_nginx-conf.py
2024-05-08 01:59:16 +02:00

8 lines
289 B
Python

import pytest
import re
def test_nginx_toplevel_conf_contains_customizations(docker_compose, nginxproxy):
conf = nginxproxy.get_toplevel_conf().decode('ASCII')
assert re.search(r"^ +worker_connections 10240;$", conf)
assert re.search(r"^worker_rlimit_nofile 20480;$", conf)