mirror of
https://github.com/deltathetawastaken/dotfiles.git
synced 2025-12-06 07:16:37 +03:00
dlaptop nginx ip hide
This commit is contained in:
parent
3a7f0d19d2
commit
a179dad397
|
|
@ -39,6 +39,25 @@ in
|
||||||
group = "socks";
|
group = "socks";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
"nginx/graf1" = { };
|
||||||
|
"nginx/graf2" = { };
|
||||||
|
"nginx/kibana" = { };
|
||||||
|
templates ={
|
||||||
|
"nginx-graf1.conf"= {
|
||||||
|
content = '' proxy_pass ${config.sops.placeholder."nginx/graf1"}; '';
|
||||||
|
mode = "0444";
|
||||||
|
};
|
||||||
|
"nginx-graf2.conf"= {
|
||||||
|
content = '' proxy_pass ${config.sops.placeholder."nginx/graf2"}; '';
|
||||||
|
mode = "0444";
|
||||||
|
};
|
||||||
|
"nginx-kibana.conf"= {
|
||||||
|
content = '' proxy_pass ${config.sops.placeholder."nginx/kibana"}; '';
|
||||||
|
mode = "0444";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
} // wifiSecrets;
|
} // wifiSecrets;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -33,11 +33,11 @@ let
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_pass http://123.123.123.123:3000;
|
include ${config.sops.templates."nginx-graf1.conf".path};
|
||||||
}
|
}
|
||||||
|
|
||||||
location /api/live/ws {
|
location /api/live/ws {
|
||||||
proxy_pass http://123.123.123.123:3000;
|
include ${config.sops.templates."nginx-graf1.conf".path};
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
|
@ -51,11 +51,11 @@ let
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_pass http://123.123.123.123:3000;
|
include ${config.sops.templates."nginx-graf2.conf".path};
|
||||||
}
|
}
|
||||||
|
|
||||||
location /api/live/ws {
|
location /api/live/ws {
|
||||||
proxy_pass http://123.123.123.123:3000;
|
include ${config.sops.templates."nginx-graf2.conf".path};
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
|
@ -69,7 +69,7 @@ let
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_pass http://123.123.123.123:5601;
|
include ${config.sops.templates."nginx-kibana.conf".path};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue