federation working (though not perfect yet, by no means
This commit is contained in:
parent
8798d16239
commit
c3742b7526
1 changed files with 22 additions and 8 deletions
|
@ -12,7 +12,7 @@ let
|
|||
gitea_host = "git.${root_host}";
|
||||
gitea_port = 8081;
|
||||
|
||||
matrix_host = "matrix.${root_host}";
|
||||
matrix_host = "matrix.${root_host}";
|
||||
in {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
@ -88,8 +88,8 @@ host replication all ::1/128 md5
|
|||
port = 5432;
|
||||
dbname = "synapse";
|
||||
user = "synapse";
|
||||
cp_min = 10;
|
||||
cp_max = 40;
|
||||
cp_min = 5;
|
||||
cp_max = 10;
|
||||
client_encoding = "auto";
|
||||
passfile = config.age.secrets.synapse_db_pass_prepared.path;
|
||||
};
|
||||
|
@ -214,11 +214,25 @@ host replication all ::1/128 md5
|
|||
virtualHosts."${root_host}" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = root_host;
|
||||
# locations."/" = {
|
||||
root = "/var/www/grimmauld.duckdns.org";
|
||||
# };
|
||||
# locations."/.well-known/matrix/" = {
|
||||
# root = "/var/www/grimmauld.duckdns.org/.well-known/matrix";
|
||||
locations."/" = {
|
||||
root = "/var/www/grimmauld.duckdns.org";
|
||||
};
|
||||
locations."/.well-known/matrix/server" = {
|
||||
## alias = "/var/www/grimmauld.duckdns.org";
|
||||
## alias = "/var/www/grimmauld.duckdns.org/.well-known/matrix/server"; # pkgs.writeText "server" ''{"m.server": "${matrix_host}:443"}'';
|
||||
## alias = matrix_redirect;
|
||||
return = "200 '{\"m.server\":\"${matrix_host}:443\"}'";
|
||||
extraConfig = ''
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
add_header Accept-Ranges bytes;'';
|
||||
};
|
||||
# locations."/.well-known/matrix/client" = {
|
||||
# return = "200 '{\"m.homeserver\": {\"base_url\": \"https://${matrix_host}\"}}'";
|
||||
# extraConfig = ''
|
||||
#add_header Access-Control-Allow-Origin *;
|
||||
#default_type application/json;
|
||||
#'';
|
||||
# };
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue