feat: several fixes & updates
This commit is contained in:
@@ -7,30 +7,26 @@ in
|
||||
{
|
||||
my-lxc.matrix = {
|
||||
container = {
|
||||
enable = true;
|
||||
cores = 2;
|
||||
memory = 2048;
|
||||
disk = "4G";
|
||||
disk = "6G";
|
||||
swap = 512;
|
||||
};
|
||||
system = {
|
||||
port = 8008; # -> synapse
|
||||
additionalPorts = [
|
||||
80
|
||||
8008
|
||||
8080
|
||||
5173
|
||||
80 # element web
|
||||
5173 # synapse admin
|
||||
];
|
||||
importConfig = [
|
||||
../config/matrix-synapse.nix
|
||||
../config/matrix-mas.nix
|
||||
../config/matrix-nginx.nix
|
||||
];
|
||||
};
|
||||
db = {
|
||||
enable = true;
|
||||
password = db_pass.matrix;
|
||||
additionalDB = [
|
||||
"matrix_mas"
|
||||
];
|
||||
};
|
||||
logging = {
|
||||
enable = true;
|
||||
@@ -45,20 +41,6 @@ in
|
||||
private = false;
|
||||
auth = false;
|
||||
}
|
||||
{
|
||||
subdomain = "matrix";
|
||||
port = 8008;
|
||||
private = false;
|
||||
auth = false;
|
||||
customRule = "Host(`matrix#DOMAIN#`) && !(PathPrefix(`/_matrix/client/*/login`) || PathPrefix(`/_matrix/client/*/logout`) || PathPrefix(`/_matrix/client/*/refresh`))";
|
||||
}
|
||||
{
|
||||
subdomain = "matrix_auth";
|
||||
port = 8080;
|
||||
private = false;
|
||||
auth = false;
|
||||
customRule = "Host(`matrix#DOMAIN#`) && (PathPrefix(`/_matrix/client/*/login`) || PathPrefix(`/_matrix/client/*/logout`) || PathPrefix(`/_matrix/client/*/refresh`))";
|
||||
}
|
||||
{
|
||||
subdomain = "matrix-admin";
|
||||
port = 5173;
|
||||
|
||||
Reference in New Issue
Block a user