Refactor nginx
This commit is contained in:
parent
7d6329a409
commit
c954272947
2 changed files with 34 additions and 51 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue