prom-config

This commit is contained in:
root 2021-01-19 18:57:38 +03:00
parent 59dbd471af
commit 71caab4e0f

View File

@ -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 {