leonard: add www-feal-no. add www-kinealbrigtsen-no. configure outgoing firewall
This commit is contained in:
26
hosts/leonard/services/www-feal-no/default.nix
Normal file
26
hosts/leonard/services/www-feal-no/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services.nginx.virtualHosts."feal.no" = {
|
||||
default = true;
|
||||
|
||||
serverAliases = [
|
||||
"www.feal.no"
|
||||
];
|
||||
|
||||
locations = {
|
||||
# TODO: Reinstate actual website
|
||||
"/".return = "302 https://git.feal.no/";
|
||||
|
||||
"^~ /.well-known/" = {
|
||||
alias = (toString ./well-known) + "/";
|
||||
};
|
||||
|
||||
"/cc/" = {
|
||||
alias = "${pkgs.cyberchef}/share/cyberchef/";
|
||||
index = "index.html";
|
||||
};
|
||||
"= /cc".return = "302 /cc/";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"m.homeserver": {
|
||||
"base_url": "https://matrix.feal.no:443"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"m.server": "matrix.feal.no:443"}
|
||||
Reference in New Issue
Block a user