Format repo
This commit is contained in:
parent
3169149045
commit
8160b9da0b
37 changed files with 643 additions and 392 deletions
|
@ -1,9 +1,14 @@
|
|||
{ lib, config, globals, ... }: {
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
globals,
|
||||
...
|
||||
}: {
|
||||
options.ntfy.enable = lib.mkEnableOption "ntfy";
|
||||
|
||||
config = lib.mkIf config.ntfy.enable {
|
||||
kubernetes.resources = {
|
||||
configMaps.ntfy.data.config = lib.generators.toYAML { } {
|
||||
configMaps.ntfy.data.config = lib.generators.toYAML {} {
|
||||
base-url = "https://ntfy.kun.is";
|
||||
cache-file = "/var/cache/ntfy/cache.db";
|
||||
cache-duration = "14d";
|
||||
|
@ -35,7 +40,7 @@
|
|||
image = globals.images.ntfy;
|
||||
ports.web.containerPort = 80;
|
||||
env.TZ.value = "Europe/Amsterdam";
|
||||
args = [ "serve" ];
|
||||
args = ["serve"];
|
||||
|
||||
volumeMounts = [
|
||||
{
|
||||
|
@ -70,12 +75,12 @@
|
|||
|
||||
persistentVolumeClaims = {
|
||||
cache.spec = {
|
||||
accessModes = [ "ReadWriteOnce" ];
|
||||
accessModes = ["ReadWriteOnce"];
|
||||
resources.requests.storage = "300Mi";
|
||||
};
|
||||
|
||||
attachment-cache.spec = {
|
||||
accessModes = [ "ReadWriteOnce" ];
|
||||
accessModes = ["ReadWriteOnce"];
|
||||
resources.requests.storage = "500Mi";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue