Update webservices.nix
This commit is contained in:
parent
5a87aa08d3
commit
41fbb8db13
1 changed files with 31 additions and 0 deletions
|
|
@ -2,9 +2,40 @@
|
||||||
{
|
{
|
||||||
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
||||||
|
|
||||||
|
# Nginx Proxy Manager
|
||||||
|
virtualisation.oci-containers = {
|
||||||
|
backend = "docker";
|
||||||
|
|
||||||
|
containers."nginx-proxy-manager" = {
|
||||||
|
image = "jc21/nginx-proxy-manager:latest";
|
||||||
|
ports = [
|
||||||
|
"80:80"
|
||||||
|
"81:81"
|
||||||
|
"443:443"
|
||||||
|
];
|
||||||
|
volumes = [
|
||||||
|
"/var/lib/nginx-proxy-manager/data:/data"
|
||||||
|
"/var/lib/nginx-proxy-manager/letsencrypt:/etc/letsencrypt"
|
||||||
|
];
|
||||||
|
extraOptions = [
|
||||||
|
"--restart=unless-stopped"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Create directories
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"d /var/lib/nginx-proxy-manager/data 0755 root root -"
|
||||||
|
"d /var/lib/nginx-proxy-manager/letsencrypt 0755 root root -"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Open firewall
|
||||||
|
networking.firewall.allowedTCPPorts = [ 80 81 443 ];
|
||||||
|
|
||||||
# Jellyfin
|
# Jellyfin
|
||||||
services.jellyfin = {
|
services.jellyfin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue