tweaks to nextcloud redirects

This commit is contained in:
Chris Cochrun 2024-06-14 15:33:46 -05:00
parent b8bb547b75
commit a32eabd043
2 changed files with 22 additions and 9 deletions

18
modules/matrix.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, lib, pkgs, ... }:
with lib;
{
services.matrix-synapse = {
enable = false;
configureRedisLocally = true;
withJemalloc = true;
settings = {
enable_metrics = true;
enable_registration = true;
dynamic_thumbnails = true;
max_upload_size = "100M";
public_baseurl = "https://matrix.tfcconnection.org/";
server_name = "tfcconnection.org";
};
};
}

View file

@ -141,8 +141,8 @@
encode gzip
reverse_proxy localhost:8080
redir /.well-known/carddav /remote.php/carddav 301
redir /.well-known/caldav /remote.php/caldav 301
redir /.well-known/carddav /remote.php/dav 301
redir /.well-known/caldav /remote.php/dav 301
header {
Strict-Transport-Security "max-age=15768000; includeSubDomains; reload;"
Access-Control-Allow-Origin *
@ -268,17 +268,11 @@
virtualHosts = {
"tfcconnection.com".extraConfig = ''
redir https://tfcconnection.org
header {
Access-Control-Allow-Origin *
}
'';
};
virtualHosts = {
"www.tfcconnection.org".extraConfig = ''
redir https://tfcconnection.org
header {
Access-Control-Allow-Origin *
}
'';
};
virtualHosts = {
@ -316,7 +310,8 @@
encode gzip
reverse_proxy 127.0.0.1:4242
header {
Access-Control-Allow-Origin *
Access-Control-Allow-Origin https://tfcconnection.org
Access-Control-Allow-Headers *
}
'';
};