mirror of
https://github.com/dali99/nixos-matrix-modules.git
synced 2025-01-10 03:11:14 +01:00
Compare commits
2 Commits
6c9b67974b
...
d7dc42c9bb
Author | SHA1 | Date | |
---|---|---|---|
d7dc42c9bb | |||
61b366f5f6 |
@ -89,7 +89,7 @@ in
|
|||||||
ensureDatabases = [ "matrix-sliding-sync" ];
|
ensureDatabases = [ "matrix-sliding-sync" ];
|
||||||
ensureUsers = [ rec {
|
ensureUsers = [ rec {
|
||||||
name = "matrix-sliding-sync";
|
name = "matrix-sliding-sync";
|
||||||
ensurePermissions."DATABASE \"${name}\"" = "ALL PRIVILEGES";
|
ensureDBOwnership = true;
|
||||||
} ];
|
} ];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -107,7 +107,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts.${cfg.publicBaseUrl} = lib.mkIf cfg.enableNginx {
|
services.nginx.virtualHosts.${cfg.publicBaseUrl} = lib.mkIf cfg.enableNginx {
|
||||||
enableACME = true;
|
enableACME = lib.mkDefault true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = lib.replaceStrings [ "0.0.0.0" "::" ] [ "127.0.0.1" "::1" ] "http://${cfg.settings.SYNCV3_BINDADDR}";
|
proxyPass = lib.replaceStrings [ "0.0.0.0" "::" ] [ "127.0.0.1" "::1" ] "http://${cfg.settings.SYNCV3_BINDADDR}";
|
||||||
|
Loading…
Reference in New Issue
Block a user