update to nixos-22.05 #2
@ -128,92 +128,6 @@ in
|
||||
mountdPort = 4002;
|
||||
};
|
||||
|
||||
matrix-synapse = {
|
||||
enable = true;
|
||||
enable_registration = true;
|
||||
server_name = "nyanlout.re";
|
||||
listeners = [
|
||||
{ # federation
|
||||
bind_address = "";
|
||||
port = 8448;
|
||||
resources = [
|
||||
{ compress = true; names = [ "client" "webclient" ]; }
|
||||
{ compress = false; names = [ "federation" ]; }
|
||||
];
|
||||
tls = true;
|
||||
type = "http";
|
||||
x_forwarded = false;
|
||||
}
|
||||
{ # client
|
||||
bind_address = "127.0.0.1";
|
||||
port = 8008;
|
||||
resources = [
|
||||
{ compress = true; names = [ "client" "webclient" ]; }
|
||||
];
|
||||
tls = false;
|
||||
type = "http";
|
||||
x_forwarded = true;
|
||||
}
|
||||
];
|
||||
max_upload_size = "100M";
|
||||
database_type = "psycopg2";
|
||||
database_args = {
|
||||
database = "matrix-synapse";
|
||||
};
|
||||
tls_private_key_path = "/var/lib/acme/${domaine}/key.pem";
|
||||
tls_certificate_path = "/var/lib/acme/${domaine}/fullchain.pem";
|
||||
url_preview_enabled = true;
|
||||
logConfig = ''
|
||||
version: 1
|
||||
|
||||
formatters:
|
||||
journal_fmt:
|
||||
format: '%(name)s: [%(request)s] %(message)s'
|
||||
|
||||
filters:
|
||||
context:
|
||||
(): synapse.util.logcontext.LoggingContextFilter
|
||||
request: ""
|
||||
|
||||
handlers:
|
||||
journal:
|
||||
class: systemd.journal.JournalHandler
|
||||
formatter: journal_fmt
|
||||
filters: [context]
|
||||
SYSLOG_IDENTIFIER: synapse
|
||||
|
||||
root:
|
||||
level: WARNING
|
||||
handlers: [journal]
|
||||
|
||||
disable_existing_loggers: False
|
||||
'';
|
||||
app_service_config_files = [
|
||||
"/var/lib/matrix-synapse/mautrix-telegram-registration.yaml"
|
||||
];
|
||||
};
|
||||
|
||||
mautrix-telegram = {
|
||||
enable = true;
|
||||
settings = {
|
||||
homeserver = {
|
||||
address = "https://matrix.nyanlout.re";
|
||||
domain = "nyanlout.re";
|
||||
};
|
||||
appservice = {
|
||||
bot_username = "loutrebot";
|
||||
};
|
||||
bridge = {
|
||||
relaybot.authless_portals = false;
|
||||
permissions = {
|
||||
"@nyanloutre:nyanlout.re" = "admin";
|
||||
};
|
||||
};
|
||||
};
|
||||
environmentFile = "/mnt/secrets/mautrix-telegram.env";
|
||||
serviceDependencies = [ "matrix-synapse.service" ];
|
||||
};
|
||||
|
||||
borgbackup.jobs = {
|
||||
loutre = {
|
||||
paths = [
|
||||
|
Loading…
Reference in New Issue
Block a user