removed ollama and copyparty setup for nginx
This commit is contained in:
parent
24954e5367
commit
db23c300fe
@ -17,7 +17,6 @@
|
|||||||
./secrets.nix
|
./secrets.nix
|
||||||
./coredns
|
./coredns
|
||||||
./copyparty.nix
|
./copyparty.nix
|
||||||
./ollama.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.kernelModules = [ "usb_storage" ];
|
boot.initrd.kernelModules = [ "usb_storage" ];
|
||||||
@ -115,11 +114,5 @@
|
|||||||
powerOnBoot = true;
|
powerOnBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.graphics.enable = true;
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
|
||||||
hardware.nvidia.open = false;
|
|
||||||
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_390;
|
|
||||||
nixpkgs.config.nvidia.acceptLicense = true;
|
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{inputs, pkgs, ...}: {
|
{ inputs, pkgs, ... }:
|
||||||
|
{
|
||||||
imports = [ inputs.copyparty.nixosModules.default ];
|
imports = [ inputs.copyparty.nixosModules.default ];
|
||||||
nixpkgs.overlays = [ inputs.copyparty.overlays.default ];
|
nixpkgs.overlays = [ inputs.copyparty.overlays.default ];
|
||||||
environment.systemPackages = [ pkgs.copyparty ];
|
environment.systemPackages = [ pkgs.copyparty ];
|
||||||
@ -11,7 +12,8 @@
|
|||||||
e2ts = true;
|
e2ts = true;
|
||||||
z = true;
|
z = true;
|
||||||
qr = true;
|
qr = true;
|
||||||
xff-src = "lan";
|
xff-hdr = "X-Real-IP";
|
||||||
|
rproxy = 1;
|
||||||
http-only = true;
|
http-only = true;
|
||||||
og = true;
|
og = true;
|
||||||
shr = "/shares";
|
shr = "/shares";
|
||||||
|
|||||||
@ -1,124 +1,132 @@
|
|||||||
{inputs, ...}:
|
{ inputs, ... }:
|
||||||
let
|
let
|
||||||
# striped-front = inputs.striped-front;
|
# striped-front = inputs.striped-front;
|
||||||
|
|
||||||
sin-address = "192.168.1.14";
|
sin-address = "192.168.1.14";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 8448 ];
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
80
|
||||||
|
443
|
||||||
|
8448
|
||||||
|
];
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
|
|
||||||
virtualHosts =
|
virtualHosts =
|
||||||
let
|
let
|
||||||
mkStarr = host: port: {
|
mkStarr = host: port: {
|
||||||
"${host}" = {
|
"${host}" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${sin-address}:${port}";
|
proxyPass = "http://${sin-address}:${port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_ssl_server_name on;
|
proxy_ssl_server_name on;
|
||||||
proxy_read_timeout 4800s;
|
proxy_read_timeout 4800s;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
(
|
|
||||||
mkStarr "jellyfin.shobu.fr" "8096"
|
|
||||||
// mkStarr "radarr.shobu.fr" "7878"
|
|
||||||
// mkStarr "sonarr.shobu.fr" "8989"
|
|
||||||
// mkStarr "prowlarr.shobu.fr" "9696"
|
|
||||||
// mkStarr "bazarr.shobu.fr" "6767"
|
|
||||||
// mkStarr "jellyseerr.shobu.fr" "5055"
|
|
||||||
// mkStarr "fileshelter.shobu.fr" "5091"
|
|
||||||
// mkStarr "lidarr.shobu.fr" "8686"
|
|
||||||
// mkStarr "transmission.shobu.fr" "9091"
|
|
||||||
// mkStarr "zimablade-admin.shobu.fr" "61208"
|
|
||||||
// {
|
|
||||||
"shobu.fr" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
|
|
||||||
root = "${inputs.shoblog-front.packages.x86_64-linux.default}/dist";
|
|
||||||
};
|
|
||||||
"data.shobu.fr" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
|
|
||||||
root = "/mnt/shares/data";
|
|
||||||
};
|
|
||||||
"bddtrans.shobu.fr" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://${sin-address}:8001";
|
|
||||||
extraConfig = ''
|
|
||||||
proxy_ssl_server_name on;
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"bddtrans-api.shobu.fr" = {
|
in
|
||||||
enableACME = true;
|
(
|
||||||
forceSSL = true;
|
mkStarr "jellyfin.shobu.fr" "8096"
|
||||||
|
// mkStarr "radarr.shobu.fr" "7878"
|
||||||
|
// mkStarr "sonarr.shobu.fr" "8989"
|
||||||
|
// mkStarr "prowlarr.shobu.fr" "9696"
|
||||||
|
// mkStarr "bazarr.shobu.fr" "6767"
|
||||||
|
// mkStarr "jellyseerr.shobu.fr" "5055"
|
||||||
|
// mkStarr "fileshelter.shobu.fr" "5091"
|
||||||
|
// mkStarr "lidarr.shobu.fr" "8686"
|
||||||
|
// mkStarr "transmission.shobu.fr" "9091"
|
||||||
|
// mkStarr "zimablade-admin.shobu.fr" "61208"
|
||||||
|
// {
|
||||||
|
"shobu.fr" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
|
||||||
locations."/" = {
|
root = "${inputs.shoblog-front.packages.x86_64-linux.default}/dist";
|
||||||
|
};
|
||||||
|
"data.shobu.fr" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
|
||||||
|
root = "/mnt/shares/data";
|
||||||
|
};
|
||||||
|
"bddtrans.shobu.fr" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://${sin-address}:8001";
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_ssl_server_name on;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"bddtrans-api.shobu.fr" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
|
||||||
|
locations."/" = {
|
||||||
proxyPass = "http://${sin-address}:8000";
|
proxyPass = "http://${sin-address}:8000";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_ssl_server_name on;
|
proxy_ssl_server_name on;
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
# "striped.shobu.fr" = {
|
||||||
# "striped.shobu.fr" = {
|
# enableACME = true;
|
||||||
# enableACME = true;
|
# forceSSL = true;
|
||||||
# forceSSL = true;
|
|
||||||
|
|
||||||
# root = "${striped-front.packages.x86_64-linux.default}/dist";
|
# root = "${striped-front.packages.x86_64-linux.default}/dist";
|
||||||
# };
|
# };
|
||||||
"dashboard.shobu.fr" = {
|
"dashboard.shobu.fr" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${sin-address}:8082";
|
proxyPass = "http://${sin-address}:8082";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
"git.shobu.fr" = {
|
||||||
"git.shobu.fr" = {
|
enableACME = true;
|
||||||
enableACME = true;
|
forceSSL = true;
|
||||||
forceSSL = true;
|
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${sin-address}:3000";
|
proxyPass = "http://${sin-address}:3000";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
"files.shobu.fr" = {
|
||||||
"files.shobu.fr" = {
|
enableACME = true;
|
||||||
enableACME = true;
|
forceSSL = true;
|
||||||
forceSSL = true;
|
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${sin-address}:8086";
|
proxyPass = "http://${sin-address}:8086";
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
# "matrix.shobu.fr" = {
|
||||||
# "matrix.shobu.fr" = {
|
# forceSSL = true;
|
||||||
# forceSSL = true;
|
# enableACME = true;
|
||||||
# enableACME = true;
|
# locations."/".extraConfig = ''
|
||||||
# locations."/".extraConfig = ''
|
# return 404;
|
||||||
# return 404;
|
# '';
|
||||||
# '';
|
# locations."/_matrix".proxyPass = "http://${sin-address}:8008";
|
||||||
# locations."/_matrix".proxyPass = "http://${sin-address}:8008";
|
# locations."/_synapse/client".proxyPass = "http://${sin-address}:8008";
|
||||||
# locations."/_synapse/client".proxyPass = "http://${sin-address}:8008";
|
# locations."/.well-known/matrix/server".proxyPass = "http://${sin-address}:8008/.well-known/matrix/server";
|
||||||
# locations."/.well-known/matrix/server".proxyPass = "http://${sin-address}:8008/.well-known/matrix/server";
|
# };
|
||||||
# };
|
}
|
||||||
}
|
);
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user