mirror of
https://github.com/deltathetawastaken/dotfiles.git
synced 2025-12-06 07:16:37 +03:00
nginx stop
This commit is contained in:
parent
589309886d
commit
04d0771a4f
|
|
@ -62,46 +62,46 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.enable = true;
|
#services.nginx.enable = true;
|
||||||
services.nginx.virtualHosts."grafana_first" = {
|
#services.nginx.virtualHosts."grafana_first" = {
|
||||||
forceSSL = false;
|
# forceSSL = false;
|
||||||
listen = [{port = 2000; addr="0.0.0.0"; ssl=false;}];
|
# listen = [{port = 2000; addr="0.0.0.0"; ssl=false;}];
|
||||||
locations."/".extraConfig = ''
|
# locations."/".extraConfig = ''
|
||||||
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;
|
# proxy_pass http://123.123.123.123:3000;
|
||||||
|
#
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
# proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
# proxy_set_header Connection "upgrade";
|
||||||
'';
|
# '';
|
||||||
locations."/api/live/ws".extraConfig = ''
|
# locations."/api/live/ws".extraConfig = ''
|
||||||
proxy_pass http://123.123.123.123:3000;
|
# proxy_pass http://123.123.123.123:3000;
|
||||||
proxy_read_timeout 120;
|
# proxy_read_timeout 120;
|
||||||
proxy_pass_header X-XSRF-TOKEN;
|
# proxy_pass_header X-XSRF-TOKEN;
|
||||||
proxy_set_header Origin "http://123.123.123.123:3000";
|
# proxy_set_header Origin "http://123.123.123.123:3000";
|
||||||
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";
|
||||||
'';
|
# '';
|
||||||
};
|
#};
|
||||||
services.nginx.virtualHosts."grafana_second" = {
|
#services.nginx.virtualHosts."grafana_second" = {
|
||||||
forceSSL = false;
|
# forceSSL = false;
|
||||||
listen = [{port = 2001; addr="0.0.0.0"; ssl=false;}];
|
# listen = [{port = 2001; addr="0.0.0.0"; ssl=false;}];
|
||||||
locations."/".extraConfig = ''
|
# locations."/".extraConfig = ''
|
||||||
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;
|
# proxy_pass http://123.123.123.123:3000;
|
||||||
'';
|
# '';
|
||||||
locations."/api/live/ws".extraConfig = ''
|
# locations."/api/live/ws".extraConfig = ''
|
||||||
proxy_pass http://123.123.123.123:3000;
|
# proxy_pass http://123.123.123.123:3000;
|
||||||
proxy_read_timeout 120;
|
# proxy_read_timeout 120;
|
||||||
proxy_pass_header X-XSRF-TOKEN;
|
# proxy_pass_header X-XSRF-TOKEN;
|
||||||
proxy_set_header Origin "http://123.123.123.123:3000";
|
# proxy_set_header Origin "http://123.123.123.123:3000";
|
||||||
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";
|
||||||
'';
|
# '';
|
||||||
};
|
#};
|
||||||
|
|
||||||
system.stateVersion = "22.11";
|
system.stateVersion = "22.11";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue