feat(jeeves)!: nginx
reverse-proxying for jeeves.local
This commit is contained in:
parent
e3b1539b41
commit
39a574e94a
5 changed files with 68 additions and 20 deletions
|
@ -8,7 +8,9 @@
|
||||||
inputs.agenix-rekey.nixosModules.default
|
inputs.agenix-rekey.nixosModules.default
|
||||||
./network.nix
|
./network.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
|
./nginx.nix
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
|
./transmission.nix
|
||||||
./mindustry.nix
|
./mindustry.nix
|
||||||
# ./home-assistant
|
# ./home-assistant
|
||||||
./samba.nix
|
./samba.nix
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
{ lib, pkgs, config, ... }:
|
{ lib, pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
tremc
|
|
||||||
];
|
|
||||||
|
|
||||||
# networking.extraHosts = ''
|
|
||||||
# 127.0.0.1 jeeves
|
|
||||||
# '';
|
|
||||||
|
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
|
@ -21,20 +13,14 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
transmission = {
|
nginx = {
|
||||||
enable = true;
|
virtualHosts."jellyfin.jeeves.local" = {
|
||||||
package = pkgs.transmission_4;
|
enableACME = false;
|
||||||
openRPCPort = true;
|
forceSSL = false;
|
||||||
webHome = pkgs.flood-for-transmission;
|
locations."/".proxyPass = "http://127.0.0.1:8096";
|
||||||
# TODO: `credentialsFile` for RPC password with agenix
|
|
||||||
settings = {
|
|
||||||
download-dir = "/data/torrents/download";
|
|
||||||
incomplete-dir = "/data/torrents/incomplete";
|
|
||||||
incomplete-dir-enabled = true;
|
|
||||||
rpc-bind-address = "0.0.0.0";
|
|
||||||
rpc-whitelist = "127.0.0.1,192.168.*.*,10.100.0.*";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
jellyfin = {
|
jellyfin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
];
|
];
|
||||||
|
|
||||||
|
networking.extraHosts = ''
|
||||||
|
127.0.0.1 jeeves.local
|
||||||
|
'';
|
||||||
|
|
||||||
# networking.nftables.enable = true;
|
# networking.nftables.enable = true;
|
||||||
|
|
||||||
age.secrets."home.wifi.env" = {
|
age.secrets."home.wifi.env" = {
|
||||||
|
|
25
machines/nixos/x86_64-linux/jeeves/nginx.nix
Normal file
25
machines/nixos/x86_64-linux/jeeves/nginx.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{ inputs, outputs, lib, pkgs, config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = [
|
||||||
|
# config.services.nextcloud.package
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.openresty;
|
||||||
|
# virtualHosts."_.jeeves.local" = {
|
||||||
|
# # listen = [
|
||||||
|
# # {
|
||||||
|
# # addr = "127.0.0.1";
|
||||||
|
# # port = 1234;
|
||||||
|
# # }
|
||||||
|
# # ];
|
||||||
|
# enableACME = false;
|
||||||
|
# forceSSL = false;
|
||||||
|
# locations."/".proxyPass = "http://127.0.0.1:1234";
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
}
|
31
machines/nixos/x86_64-linux/jeeves/transmission.nix
Normal file
31
machines/nixos/x86_64-linux/jeeves/transmission.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ lib, pkgs, config, ... }:
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
tremc
|
||||||
|
];
|
||||||
|
|
||||||
|
services = {
|
||||||
|
transmission = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.transmission_4;
|
||||||
|
openRPCPort = true;
|
||||||
|
webHome = pkgs.flood-for-transmission;
|
||||||
|
# TODO: `credentialsFile` for RPC password with agenix
|
||||||
|
settings = {
|
||||||
|
download-dir = "/data/torrents/download";
|
||||||
|
incomplete-dir = "/data/torrents/incomplete";
|
||||||
|
incomplete-dir-enabled = true;
|
||||||
|
rpc-bind-address = "0.0.0.0";
|
||||||
|
rpc-whitelist = "127.0.0.1,192.168.*.*,10.100.0.*,*.local";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
nginx = {
|
||||||
|
virtualHosts."transmission.jeeves.local" = {
|
||||||
|
enableACME = false;
|
||||||
|
forceSSL = false;
|
||||||
|
locations."/".proxyPass = "http://127.0.0.1:9091";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue