Fix incorrect upstream_target config
This commit is contained in:
@@ -130,7 +130,7 @@ impl From<UpstreamTargetCreateInfo> for upstream_target::ActiveModel {
|
|||||||
impl NginxConfigProvider for UpstreamTargetInfo {
|
impl NginxConfigProvider for UpstreamTargetInfo {
|
||||||
fn to_nginx_config(&self, indent: Option<usize>) -> String {
|
fn to_nginx_config(&self, indent: Option<usize>) -> String {
|
||||||
format!(
|
format!(
|
||||||
"{}:{} weight={}{}{}",
|
"server {}:{} weight={}{}{};",
|
||||||
self.target_host,
|
self.target_host,
|
||||||
self.target_port,
|
self.target_port,
|
||||||
self.weight,
|
self.weight,
|
||||||
|
|||||||
Reference in New Issue
Block a user