diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 87225f7..d427948 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -23,6 +23,7 @@ ./programs/docker.nix ./programs/microboard.nix ./programs/freshrss.nix + ./programs/comfycamp.nix ]; # Enable flakes diff --git a/nixos/programs/comfycamp.nix b/nixos/programs/comfycamp.nix new file mode 100644 index 0000000..af56ef3 --- /dev/null +++ b/nixos/programs/comfycamp.nix @@ -0,0 +1,8 @@ +{ config, ... }: +{ + virtualisation.oci-containers.containers.comfycamp = { + autoStart = true; + image = "ghcr.io/ordinary-dev/comfycamp:v0.0.1"; + ports = ["55007:80"]; + }; +} diff --git a/nixos/programs/nginx.nix b/nixos/programs/nginx.nix index 297ba85..7e2f12f 100644 --- a/nixos/programs/nginx.nix +++ b/nixos/programs/nginx.nix @@ -30,16 +30,19 @@ in { "comfycamp.space" = { useACMEHost = "comfycamp.space"; forceSSL = true; - # This section is not needed if the server_name of matrix-synapse is equal to - # the domain (i.e. example.org from @foo:example.org) and the federation port - # is 8448. - # Further reference can be found in the docs about delegation under - # https://matrix-org.github.io/synapse/latest/delegate.html - locations."= /.well-known/matrix/server".extraConfig = mkWellKnown serverConfig; - # This is usually needed for homeserver discovery (from e.g. other Matrix clients). - # Further reference can be found in the upstream docs at - # https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixclient - locations."= /.well-known/matrix/client".extraConfig = mkWellKnown clientConfig; + locations = { + "/".proxyPass = "http://127.0.0.1:55007"; + # This section is not needed if the server_name of matrix-synapse is equal to + # the domain (i.e. example.org from @foo:example.org) and the federation port + # is 8448. + # Further reference can be found in the docs about delegation under + # https://matrix-org.github.io/synapse/latest/delegate.html + "/.well-known/matrix/server".extraConfig = mkWellKnown serverConfig; + # This is usually needed for homeserver discovery (from e.g. other Matrix clients). + # Further reference can be found in the upstream docs at + # https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixclient + "/.well-known/matrix/client".extraConfig = mkWellKnown clientConfig; + }; }; # Nextcloud