add the old site
This commit is contained in:
parent
8d326632d3
commit
9eaddef14e
1 changed files with 30 additions and 23 deletions
|
@ -2,34 +2,41 @@
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
# The main nginx domain
|
# The main nginx domain
|
||||||
nginx.virtualHosts."nixfox.ca" = {
|
nginx.virtualHosts = {
|
||||||
enableACME = true;
|
"nixfox.ca" = {
|
||||||
addSSL = true;
|
enableACME = true;
|
||||||
|
addSSL = true;
|
||||||
|
root = "/var/www/nixfox-reborn/public";
|
||||||
|
|
||||||
root = "/var/www/nixfox-reborn/public";
|
locations = {
|
||||||
|
"/".extraConfig = ''
|
||||||
|
error_page 404 /404.html;
|
||||||
|
'';
|
||||||
|
|
||||||
locations = {
|
"~ \\.php$".extraConfig = ''
|
||||||
"/".extraConfig = ''
|
fastcgi_index index.php;
|
||||||
error_page 404 /404.html;
|
fastcgi_pass unix:${config.services.phpfpm.pools.nginx.socket};
|
||||||
'';
|
'';
|
||||||
|
|
||||||
"~ \\.php$".extraConfig = ''
|
"/.well-known/matrix/client".extraConfig = ''
|
||||||
fastcgi_index index.php;
|
default_type application/json;
|
||||||
fastcgi_pass unix:${config.services.phpfpm.pools.nginx.socket};
|
return 200 '{
|
||||||
'';
|
"m.homeserver": { "base_url": "https://matrix.nixfox.ca" },
|
||||||
|
"m.identity_server": { "base_url": "https://matrix.org" }
|
||||||
|
}';
|
||||||
|
'';
|
||||||
|
|
||||||
"/.well-known/matrix/client".extraConfig = ''
|
"/.well-known/matrix/server".extraConfig = ''
|
||||||
default_type application/json;
|
default_type application/json;
|
||||||
return 200 '{
|
return 200 '{ "m.server": "matrix.nixfox.ca:443" }';
|
||||||
"m.homeserver": { "base_url": "https://matrix.nixfox.ca" },
|
'';
|
||||||
"m.identity_server": { "base_url": "https://matrix.org" }
|
};
|
||||||
}';
|
};
|
||||||
'';
|
|
||||||
|
|
||||||
"/.well-known/matrix/server".extraConfig = ''
|
"old.nixfox.ca" = {
|
||||||
default_type application/json;
|
enableACME = true;
|
||||||
return 200 '{ "m.server": "matrix.nixfox.ca:443" }';
|
addSSL = true;
|
||||||
'';
|
root = "/var/www/landing-page";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue