Compare commits
2 Commits
fc5fcec63b
...
d31e18b824
Author | SHA1 | Date | |
---|---|---|---|
d31e18b824 | |||
55cb186947 |
@ -107,6 +107,8 @@
|
|||||||
hostName = "copernicus";
|
hostName = "copernicus";
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
interfaces = {
|
||||||
|
eno1 = {
|
||||||
allowedTCPPorts = [ 6000 ];
|
allowedTCPPorts = [ 6000 ];
|
||||||
allowedTCPPortRanges = [
|
allowedTCPPortRanges = [
|
||||||
{ from = 1714; to = 1764; } # KDE Connect
|
{ from = 1714; to = 1764; } # KDE Connect
|
||||||
@ -115,6 +117,17 @@
|
|||||||
{ from = 1714; to = 1764; } # KDE Connect
|
{ from = 1714; to = 1764; } # KDE Connect
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
wg0 = {
|
||||||
|
# allow everything bound to the wg0 interface
|
||||||
|
allowedTCPPortRanges = [
|
||||||
|
{ from = 1; to = 35565; }
|
||||||
|
];
|
||||||
|
allowedUDPPortRanges = [
|
||||||
|
{ from = 1; to = 35565; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.kdeconnect.enable = true;
|
programs.kdeconnect.enable = true;
|
||||||
|
@ -4,10 +4,12 @@
|
|||||||
services.photoprism = {
|
services.photoprism = {
|
||||||
enable = true;
|
enable = true;
|
||||||
originalsPath = "/var/lib/photoprism/originals";
|
originalsPath = "/var/lib/photoprism/originals";
|
||||||
|
passwordFile = "/home/usr/wg-keys/photoprism-password";
|
||||||
settings = {
|
settings = {
|
||||||
PHOTOPRISM_ADMIN_USER = "usr";
|
PHOTOPRISM_ADMIN_USER = "usr";
|
||||||
PHOTOPRISM_ADMIN_PASSWORD = "usr";
|
|
||||||
PHOTOPRISM_SITE_TITLE = "photos.beepboop.systems";
|
PHOTOPRISM_SITE_TITLE = "photos.beepboop.systems";
|
||||||
|
PHOTOPRISM_SITE_URL = "https://photos.beepboop.systems";
|
||||||
|
PHOTOPRISM_DEFAULT_LOCALE = "en";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -13,8 +13,7 @@
|
|||||||
peers = [
|
peers = [
|
||||||
{ # netbox
|
{ # netbox
|
||||||
publicKey = "0fOqAfsYO4HvshMPnlkKL7Z1RChq98hjDr0Q8o7OJFE=";
|
publicKey = "0fOqAfsYO4HvshMPnlkKL7Z1RChq98hjDr0Q8o7OJFE=";
|
||||||
allowedIPs = [ "10.100.0.1" ]; # only server-bound traffic -- everything else
|
allowedIPs = [ "10.100.0.0/24" ]; # only stuff in the wg-subnet (10.100.0.*)
|
||||||
# should be routed via consumer isp
|
|
||||||
endpoint = "149.28.63.115:51820";
|
endpoint = "149.28.63.115:51820";
|
||||||
persistentKeepalive = 25;
|
persistentKeepalive = 25;
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
./nginx.nix
|
./nginx.nix
|
||||||
./franklincce.nix
|
./franklincce.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
|
./photoprism-bridge.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
17
boxes/netbox/photoprism-bridge.nix
Normal file
17
boxes/netbox/photoprism-bridge.nix
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.nginx.virtualHosts."photos.beepboop.systems" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://10.100.0.2:2342";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user