move search to mb

This commit is contained in:
Cyryl Płotnicki 2023-05-20 17:26:09 +01:00
parent 1e7161dde4
commit cfc40ca8c7
5 changed files with 9 additions and 15 deletions

View file

@ -12,7 +12,6 @@
./print-server.nix
./real-hardware.nix
./restic-server.nix
./search.nix
./tailscale-cert.nix
./virtualisation.nix
];

View file

@ -1,12 +0,0 @@
{ config, pkgs, ... }: {
imports = [ ../nginx.nix ];
networking.firewall.allowedTCPPorts = [ 8888 ];
virtualisation.oci-containers.containers.searxng = {
image =
"searxng/searxng@sha256:650c0b183a129e10c2493126bb27c3541ffebbead6e0255fab91831457211b06";
volumes = [ ];
environment = { BASE_URL = "https://search.cyplo.dev"; };
ports = [ "8888:8080" ];
};
}

View file

@ -5,6 +5,7 @@
./atuin.nix
./boot.nix
./disks.nix
./search.nix
];
networking.hostName = "mb1";

View file

@ -1,5 +1,12 @@
{ config, pkgs, ... }: {
imports = [ ../nginx.nix ];
virtualisation.oci-containers.containers.searxng = {
image =
"searxng/searxng@sha256:650c0b183a129e10c2493126bb27c3541ffebbead6e0255fab91831457211b06";
volumes = [ ];
environment = { BASE_URL = "https://search.cyplo.dev"; };
ports = [ "9999:8080" ];
};
services.nginx = {
virtualHosts = {
"search.cyplo.dev" = {
@ -15,7 +22,7 @@
proxy_buffer_size 256k;
'';
locations."/" = {
proxyPass = "http://bolty:8888";
proxyPass = "http://127.0.0.1:9999";
proxyWebsockets = true;
};
};

View file

@ -13,7 +13,6 @@
./mastodon.nix
./matrix-front.nix
./rss.nix
./search.nix
./ssh.nix
./syncthing-relay.nix
];