Split domains into their own var file and update all files accordingly
This commit is contained in:
parent
47bf9a94cd
commit
fe73fa0d1f
34 changed files with 143 additions and 117 deletions
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
services.nginx.virtualHosts = {
|
||||
"${config.secrets.jimDomain}" = {
|
||||
"${config.domains.jim1}" = {
|
||||
enableACME = true;
|
||||
addSSL = true;
|
||||
root = "/var/www/Jimbo-Landing-Page";
|
||||
|
@ -12,13 +12,13 @@
|
|||
return 200 '
|
||||
{
|
||||
"m.homeserver": {
|
||||
"base_url": "https://matrix.${config.secrets.jimDomain}"
|
||||
"base_url": "https://matrix.${config.domains.jim1}"
|
||||
},
|
||||
"m.identity_server": {
|
||||
"base_url": "https://matrix.org"
|
||||
},
|
||||
"org.matrix.msc3575.proxy": {
|
||||
"url": "https://matrix.${config.secrets.jimDomain}"
|
||||
"url": "https://matrix.${config.domains.jim1}"
|
||||
}
|
||||
}';
|
||||
'';
|
||||
|
@ -26,7 +26,7 @@
|
|||
"/.well-known/matrix/server" = {
|
||||
extraConfig = ''
|
||||
default_type application/json;
|
||||
return 200 '{"m.server": "matrix.${config.secrets.jimDomain}:443"}';
|
||||
return 200 '{"m.server": "matrix.${config.domains.jim1}:443"}';
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue