refactor(services/synapse): remove deadcode
Some checks failed
Nix CI / build (push) Failing after 30s
Some checks failed
Nix CI / build (push) Failing after 30s
This commit is contained in:
parent
d2949df2fb
commit
e77bc1e641
1 changed files with 0 additions and 5 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.machine.synapse;
|
cfg = config.machine.synapse;
|
||||||
maxUploadSize = config.services.matrix-synapse.settings.max_upload_size;
|
|
||||||
|
|
||||||
clientConfig."m.homeserver".base_url = baseUrl;
|
clientConfig."m.homeserver".base_url = baseUrl;
|
||||||
serverConfig."m.server" = "${cfg.domain}:443";
|
serverConfig."m.server" = "${cfg.domain}:443";
|
||||||
|
|
@ -17,11 +16,7 @@ in
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
appendHttpConfig = ''
|
appendHttpConfig = ''
|
||||||
limit_req_zone $binary_remote_addr zone=matrix:10m rate=50r/s;
|
limit_req_zone $binary_remote_addr zone=matrix:10m rate=50r/s;
|
||||||
limit_conn_zone $binary_remote_addr zone=conn_limit:10m;
|
|
||||||
'';
|
'';
|
||||||
upstreams."matrix-synapse".servers = {
|
|
||||||
"unix:/run/matrix-synapse/matrix-synapse.sock" = { };
|
|
||||||
};
|
|
||||||
virtualHosts.${cfg.domain} = {
|
virtualHosts.${cfg.domain} = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue