Add comfycamp container

This commit is contained in:
Ivan R. 2023-08-27 23:31:57 +05:00
parent 3c49c2d238
commit e4e8d90b39
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C
3 changed files with 22 additions and 10 deletions

View file

@ -23,6 +23,7 @@
./programs/docker.nix
./programs/microboard.nix
./programs/freshrss.nix
./programs/comfycamp.nix
];
# Enable flakes

View file

@ -0,0 +1,8 @@
{ config, ... }:
{
virtualisation.oci-containers.containers.comfycamp = {
autoStart = true;
image = "ghcr.io/ordinary-dev/comfycamp:v0.0.1";
ports = ["55007:80"];
};
}

View file

@ -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