diff --git a/modules/containers.nix b/modules/containers.nix index 6f060bd..8437aa1 100644 --- a/modules/containers.nix +++ b/modules/containers.nix @@ -58,6 +58,17 @@ PHOTOVIEW_LISTEN_PORT = "4001"; }; }; + # File converter + convertx = { + image = "c4illin/convertx@sha256:b515b04bfd25298a5cdc775b2fcd48b9399bab658ce13e2598b65df1b16098c8"; + ports = [ "127.0.0.1:9292:3000" ]; + volumes = [ "/vault/convertx:/app/data" ]; + environment = { + AUTO_DELETE_EVERY_N_HOURS = "0"; + FFMPEG_ARGS = "-hwaccel vaapi"; + LIBVA_DRIVER_NAME = "iHD"; + }; + }; }; }; }; diff --git a/modules/webstack.nix b/modules/webstack.nix index 20f1bec..e657cb7 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -174,6 +174,11 @@ forceSSL = true; locations."/".proxyPass = "http://localhost:9191/"; }; + "convert.psydnd.org" = { + useACMEHost = "psydnd.org"; + forceSSL = true; + locations."/".proxyPass = "http://localhost:9292/"; + }; }; };