tweaks to nextcloud redirects
This commit is contained in:
parent
b8bb547b75
commit
a32eabd043
18
modules/matrix.nix
Normal file
18
modules/matrix.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -141,8 +141,8 @@
|
||||||
encode gzip
|
encode gzip
|
||||||
reverse_proxy localhost:8080
|
reverse_proxy localhost:8080
|
||||||
|
|
||||||
redir /.well-known/carddav /remote.php/carddav 301
|
redir /.well-known/carddav /remote.php/dav 301
|
||||||
redir /.well-known/caldav /remote.php/caldav 301
|
redir /.well-known/caldav /remote.php/dav 301
|
||||||
header {
|
header {
|
||||||
Strict-Transport-Security "max-age=15768000; includeSubDomains; reload;"
|
Strict-Transport-Security "max-age=15768000; includeSubDomains; reload;"
|
||||||
Access-Control-Allow-Origin *
|
Access-Control-Allow-Origin *
|
||||||
|
@ -268,17 +268,11 @@
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"tfcconnection.com".extraConfig = ''
|
"tfcconnection.com".extraConfig = ''
|
||||||
redir https://tfcconnection.org
|
redir https://tfcconnection.org
|
||||||
header {
|
|
||||||
Access-Control-Allow-Origin *
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"www.tfcconnection.org".extraConfig = ''
|
"www.tfcconnection.org".extraConfig = ''
|
||||||
redir https://tfcconnection.org
|
redir https://tfcconnection.org
|
||||||
header {
|
|
||||||
Access-Control-Allow-Origin *
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
|
@ -316,7 +310,8 @@
|
||||||
encode gzip
|
encode gzip
|
||||||
reverse_proxy 127.0.0.1:4242
|
reverse_proxy 127.0.0.1:4242
|
||||||
header {
|
header {
|
||||||
Access-Control-Allow-Origin *
|
Access-Control-Allow-Origin https://tfcconnection.org
|
||||||
|
Access-Control-Allow-Headers *
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue