Emelie Graven
90eb0c3708
The entire file structure has been reorganised into stable and unstable to separate deployments running on either channel. A `mail` host running Simple Nix Mailserver has also been added for testing to see if it's a good alternative to soverin as well as SMTP for other services.
25 lines
882 B
Nix
25 lines
882 B
Nix
{
|
|
imports = [ ../../../common/services/nginx.nix ];
|
|
services.nginx.virtualHosts = {
|
|
"anarkafem.dev" = {
|
|
useACMEHost = "anarkafem.dev";
|
|
forceSSL = true;
|
|
locations."/".root = "/var/www/anarkafem.dev/public";
|
|
locations."/_matrix/".proxyPass = "http://127.0.0.1:8008";
|
|
locations."/_synapse".proxyPass = "http://127.0.0.1:8008";
|
|
locations."/.well-known/matrix/" = {
|
|
root = "/var/www/matrix/public";
|
|
extraConfig = ''
|
|
default_type application/json;
|
|
add_header Access-Control-Allow-Origin "*";
|
|
add_header Strict-Transport-Security $hsts_header;
|
|
add_header Referrer-Policy "origin-when-cross-origin";
|
|
add_header X-Frame-Options "DENY";
|
|
add_header X-Content-Type-Options "nosniff";
|
|
add_header X-XSS-Protection "1; mode=block";
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|