Compare commits

..

No commits in common. "10d00e75b20e64043782a18f2fb46e6bcda80155" and "487f5f1c2b24ab2fbee5759e18e75b2b87187b25" have entirely different histories.

2 changed files with 11 additions and 27 deletions

8
flake.lock generated
View file

@ -57,11 +57,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1738146869, "lastModified": 1737728406,
"narHash": "sha256-AzAz5+EgiF9CTXspgIHCna4XwA4RvQJq2bldGI/G8Cg=", "narHash": "sha256-m0Fn7+PJHKaARelpu39oe1THO2CbGTpDTj9W4rtXAJs=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "edcd0a4ddf59dc9cbacf539e019da0c65896be5e", "rev": "70b5e931bacc4a59cdef5b5ea26d3f968c52b332",
"revCount": 50, "revCount": 44,
"type": "git", "type": "git",
"url": "https://git.uku3lig.net/uku/camasca" "url": "https://git.uku3lig.net/uku/camasca"
}, },

View file

@ -1,29 +1,13 @@
{ camasca, ... }:
{ {
imports = [ camasca.nixosModules.shlink ];
cfTunnels."uku.moe" = "http://localhost:8081"; cfTunnels."uku.moe" = "http://localhost:8081";
services = { virtualisation.oci-containers.containers.shlink = {
shlink = { image = "shlinkio/shlink:stable";
enable = true; ports = [ "8081:8080" ];
environment = { volumes = [ "/data/shlink/database.sqlite:/etc/shlink/data/database.sqlite" ];
PORT = "8081"; environment = {
DEFAULT_DOMAIN = "uku.moe"; DEFAULT_DOMAIN = "uku.moe";
IS_HTTPS_ENABLED = "true"; IS_HTTPS_ENABLED = "true";
DB_DRIVER = "postgres";
DB_UNIX_SOCKET = "/var/run/postgresql";
};
};
postgresql = {
ensureDatabases = [ "shlink" ];
ensureUsers = [
{
name = "shlink";
ensureDBOwnership = true;
}
];
}; };
}; };
} }