Refactor nginx

This commit is contained in:
Adrian Heine 2019-09-19 13:48:50 +02:00
parent 7d6329a409
commit c954272947
2 changed files with 34 additions and 51 deletions

View file

@ -171,8 +171,12 @@ location @proxy {{
socket_path: Cow<'a, str>,
static_path: Cow<'a, str>,
command_runner: &'a C,
additional_config: &'a str,
) -> Self {
let content = server_config(domain, &php_server_config_snippet(socket_path, static_path));
let content = server_config(
domain,
&(php_server_config_snippet(socket_path, static_path) + additional_config),
);
NginxServer::new(domain, content, command_runner)
}