removed ollama and copyparty setup for nginx
This commit is contained in:
parent
24954e5367
commit
db23c300fe
@ -17,7 +17,6 @@
|
||||
./secrets.nix
|
||||
./coredns
|
||||
./copyparty.nix
|
||||
./ollama.nix
|
||||
];
|
||||
|
||||
boot.initrd.kernelModules = [ "usb_storage" ];
|
||||
@ -115,11 +114,5 @@
|
||||
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";
|
||||
}
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
{inputs, pkgs, ...}: {
|
||||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
imports = [ inputs.copyparty.nixosModules.default ];
|
||||
nixpkgs.overlays = [ inputs.copyparty.overlays.default ];
|
||||
environment.systemPackages = [ pkgs.copyparty ];
|
||||
@ -11,7 +12,8 @@
|
||||
e2ts = true;
|
||||
z = true;
|
||||
qr = true;
|
||||
xff-src = "lan";
|
||||
xff-hdr = "X-Real-IP";
|
||||
rproxy = 1;
|
||||
http-only = true;
|
||||
og = true;
|
||||
shr = "/shares";
|
||||
|
||||
@ -3,9 +3,14 @@ let
|
||||
# striped-front = inputs.striped-front;
|
||||
|
||||
sin-address = "192.168.1.14";
|
||||
in {
|
||||
in
|
||||
{
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 8448 ];
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
8448
|
||||
];
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
@ -105,6 +110,9 @@ in {
|
||||
|
||||
locations."/" = {
|
||||
proxyPass = "http://${sin-address}:8086";
|
||||
extraConfig = ''
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
'';
|
||||
};
|
||||
};
|
||||
# "matrix.shobu.fr" = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user