Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
99eddd50
authored
Sep 29, 2023
by
Karsa Zoltán István
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update nginx conf for loadb
parent
f4c31e6a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
salt/manager/files/nginx-default-site.conf
+25
-0
No files found.
salt/manager/files/nginx-default-site.conf
View file @
99eddd50
...
@@ -37,6 +37,31 @@ server {
...
@@ -37,6 +37,31 @@ server {
proxy_set_header
Upgrade
$
http_upgrade
;
proxy_set_header
Upgrade
$
http_upgrade
;
proxy_set_header
Connection
"upgrade"
;
proxy_set_header
Connection
"upgrade"
;
}
}
# Load balancer support
location
/
RBstat
{
set
$
time
-
8
d
;
if
($
query_string
~*
"time=(.*)"
) {
set
$
time
$
1
;
}
set
$
target_param
sum
(
circle
.*.
vmcount
);
if
($
query_string
~*
"target=(.*)"
) {
set
$
target_param
$
1
;
}
set
$
format_param
png
;
if
($
query_string
~*
"format=(.*)"
) {
set
$
format_param
$
1
;
}
set
$
title_param
$
target_param
;
if
($
query_string
~*
"title=(.*)"
) {
set
$
title_param
$
1
;
}
set
$
until_param
0
;
if
($
query_string
~*
"until=(.*)"
) {
set
$
until_param
$
1
;
}
proxy_pass
http
://
127
.
0
.
0
.
1
:
8081
/
render
?
format
=$
format_param
&
target
=$
target_param
&
from
=$
time
&
height
=
800
&
width
=
1400
&
hideLegend
=
false
&
areaMode
=
all
&
target
=
constantLine
(
0
)&
title
=$
title_param
;
}
}
}
{%
if
pillar
[
'deployment_type'
] ==
"local"
%}
{%
if
pillar
[
'deployment_type'
] ==
"local"
%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment