This commit is contained in:
parent
95a1a28e91
commit
a6859caa56
4 changed files with 18 additions and 14 deletions
|
@ -15,6 +15,8 @@ let
|
|||
in {
|
||||
imports = [ ];
|
||||
|
||||
nixpkgs.config.permittedInsecurePackages = [ "openssl-1.1.1t" ];
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
|
@ -70,6 +72,7 @@ in {
|
|||
allow 10.10.10.1/24;
|
||||
allow 192.168.0.0/23;
|
||||
allow 80.60.83.220;
|
||||
allow 83.128.154.23;
|
||||
allow 195.85.167.32/29;
|
||||
deny all;
|
||||
'';
|
||||
|
@ -99,7 +102,7 @@ in {
|
|||
proxyWebsockets = true;
|
||||
};
|
||||
|
||||
locations."api/v1/streaming" = {
|
||||
locations."/api/v1/streaming" = {
|
||||
proxyPass = "http://192.168.0.138:55000";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
|
|
|
@ -85,6 +85,7 @@ in {
|
|||
allow 10.42.42.0/23;
|
||||
allow 192.168.0.0/23;
|
||||
allow 80.60.83.220;
|
||||
allow 83.128.154.23;
|
||||
allow 195.85.167.32/29;
|
||||
deny all;
|
||||
'';
|
||||
|
|
|
@ -77,7 +77,7 @@ in {
|
|||
# https://docs.opnsense.org/manual/how-tos/wireguard-s2s.html
|
||||
publicKey = "KgqLhmUMX6kyTjRoa/GOCrZOvXNE5HWYuOr/T3v8/VI=";
|
||||
allowedIPs = [ "10.100.0.5/32" "192.168.0.0/23" "10.10.10.0/24" ];
|
||||
endpoint = "80.60.83.220:51820";
|
||||
endpoint = "83.128.154.23:51820";
|
||||
persistentKeepalive = 25;
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue