music: init
This commit is contained in:
parent
3b53f3b8a9
commit
b5d9507157
11 changed files with 243 additions and 19 deletions
|
@ -16,15 +16,15 @@
|
|||
sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."nc.oxapentane.com" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
extraConfig = ''
|
||||
services.nginx.virtualHosts = {
|
||||
"nc.oxapentane.com" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
extraConfig = ''
|
||||
client_max_body_size 512M;
|
||||
'';
|
||||
locations = {
|
||||
"/" = {
|
||||
# extraConfig = '' return 503; '';
|
||||
'';
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://10.34.45.100:8080";
|
||||
};
|
||||
"/well-known/carddav" = {
|
||||
|
@ -33,7 +33,29 @@
|
|||
"/well-known/caldav" = {
|
||||
return = "301 $scheme://$host/remote.php/dav";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
"music.oxapentane.com" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
extraConfig = ''
|
||||
client_max_body_size 32M;
|
||||
'';
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://10.34.45.101:4533";
|
||||
extraConfig = ''
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Protocol $scheme;
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
proxy_buffering off;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -66,6 +66,14 @@
|
|||
PersistentKeepalive = 25;
|
||||
};
|
||||
}
|
||||
# music
|
||||
{
|
||||
wireguardPeerConfig = {
|
||||
PublicKey = "vQNkp51S9qLsu97dLPj0/EqFwvVtRFZpMHufgKhxum0=";
|
||||
AllowedIPs = [ "10.34.45.101/32" ];
|
||||
PersistentKeepalive = 25;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
networks."oxaproxy" = {
|
||||
|
|
|
@ -5,5 +5,6 @@
|
|||
./secrets.nix
|
||||
./oxalab.nix
|
||||
./mcvm-network.nix
|
||||
./microvms.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
addresses = [{
|
||||
addressConfig.Address = "10.99.99.1/24";
|
||||
}
|
||||
{
|
||||
addressConfig.Address = "fd12:3456:789a::1/64";
|
||||
}];
|
||||
{
|
||||
addressConfig.Address = "fd12:3456:789a::1/64";
|
||||
}];
|
||||
ipv6Prefixes = [{
|
||||
ipv6PrefixConfig.Prefix = "fd12:3456:789a::/64";
|
||||
}];
|
||||
|
|
12
hosts/dishwasher/microvms.nix
Normal file
12
hosts/dishwasher/microvms.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ self, ... }: {
|
||||
microvm.vms = {
|
||||
nextcloud = {
|
||||
flake = self;
|
||||
updateFlake = "github:oxapentane/nix-config/master";
|
||||
};
|
||||
music = {
|
||||
flake = self;
|
||||
updateFlake = "github:oxapentane/nix-config/navidrome";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue