Linode config update 22.05
This commit is contained in:
@@ -31,10 +31,10 @@ root root postgres
|
|||||||
|
|
||||||
services.logrotate = {
|
services.logrotate = {
|
||||||
enable = true;
|
enable = true;
|
||||||
paths = {
|
settings = {
|
||||||
postgres = {
|
postgres = {
|
||||||
enable = true;
|
enable = true;
|
||||||
path = "${config.services.postgresqlBackup.location}/*.gz";
|
files = "${config.services.postgresqlBackup.location}/*.gz";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -74,16 +74,19 @@ return 200 '${builtins.toJSON client}';
|
|||||||
|
|
||||||
services.matrix-synapse = {
|
services.matrix-synapse = {
|
||||||
enable = true;
|
enable = true;
|
||||||
database_name = "synapse";
|
|
||||||
database_user = "matrix-synapse";
|
|
||||||
# Identify ourselves as the root of our own domain
|
# Identify ourselves as the root of our own domain
|
||||||
|
settings = {
|
||||||
|
database.args = {
|
||||||
|
user = "matrix-synapse";
|
||||||
|
name = "synapse";
|
||||||
|
};
|
||||||
server_name = "thehellings.com";
|
server_name = "thehellings.com";
|
||||||
#registration_shared_secret = "B9EoPr2WV9hzwc7uL2Sx1JmvCeKDEOGCpB0uginQcQtEH4wzRtkSIdo7lltrjSQa";
|
#registration_shared_secret = "B9EoPr2WV9hzwc7uL2Sx1JmvCeKDEOGCpB0uginQcQtEH4wzRtkSIdo7lltrjSQa";
|
||||||
# Bind a single listener to localhost only, disable SSL/TLS, and put
|
# Bind a single listener to localhost only, disable SSL/TLS, and put
|
||||||
# it behind an nginx proxy
|
# it behind an nginx proxy
|
||||||
listeners = [ {
|
listeners = [ {
|
||||||
port = 8448;
|
port = 8448;
|
||||||
bind_address = "127.0.0.1";
|
bind_addresses = ["127.0.0.1"];
|
||||||
type = "http"; # Offload SSL/TLS to Nginx
|
type = "http"; # Offload SSL/TLS to Nginx
|
||||||
tls = false;
|
tls = false;
|
||||||
resources = [ {
|
resources = [ {
|
||||||
@@ -95,6 +98,7 @@ return 200 '${builtins.toJSON client}';
|
|||||||
"/etc/${fbRegistrationFile}"
|
"/etc/${fbRegistrationFile}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Open networking ports for the server
|
# Open networking ports for the server
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
|
|||||||
Reference in New Issue
Block a user