prom-config
This commit is contained in:
parent
59dbd471af
commit
71caab4e0f
32
nginx.conf
32
nginx.conf
@ -16,15 +16,19 @@ http {
|
||||
server 89.223.91.151:8033;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 81;
|
||||
server_name localhost;
|
||||
root /home/ijl/ijl/apps/lavr/master;
|
||||
upstream multystub {
|
||||
server 89.223.91.151:8043;
|
||||
}
|
||||
|
||||
location / {
|
||||
index index.html;
|
||||
}
|
||||
}
|
||||
# server {
|
||||
# listen 81;
|
||||
# server_name localhost;
|
||||
# root /home/ijl/ijl/apps/lavr/master;
|
||||
#
|
||||
# location / {
|
||||
# index index.html;
|
||||
# }
|
||||
# }
|
||||
|
||||
server {
|
||||
listen 82;
|
||||
@ -47,14 +51,14 @@ http {
|
||||
}
|
||||
|
||||
server {
|
||||
listen 8079;
|
||||
listen 8080;
|
||||
# index index.php index.html index.htm index.nginx-debian.html;
|
||||
location / {
|
||||
add_header 'Access-Control-Allow-Origin' '*';
|
||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
||||
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
||||
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
||||
proxy_pass http://89.223.91.151:8080/;
|
||||
proxy_pass http://89.223.91.151:8079/;
|
||||
}
|
||||
|
||||
location /api {
|
||||
@ -64,6 +68,14 @@ http {
|
||||
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
||||
proxy_pass http://backend;
|
||||
}
|
||||
|
||||
location /multystub/ {
|
||||
add_header 'Access-Control-Allow-Origin' '*';
|
||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
||||
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
||||
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
||||
proxy_pass http://multystub/;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
|
Loading…
Reference in New Issue
Block a user