wip m.jakstys.lt
This commit is contained in:
@@ -364,7 +364,18 @@ in
|
||||
precompressed zstd br gzip
|
||||
}
|
||||
'';
|
||||
"jakstys.lt".extraConfig = ''
|
||||
"jakstys.lt".extraConfig =
|
||||
let
|
||||
jakstysLandingPage = pkgs.runCommand "jakstys-landing-page" { } ''
|
||||
mkdir -p $out
|
||||
cp ${../../jakstys.lt.html} $out/index.html
|
||||
'';
|
||||
in
|
||||
''
|
||||
@redirects {
|
||||
path /contact/
|
||||
}
|
||||
|
||||
header {
|
||||
Strict-Transport-Security "max-age=15768000"
|
||||
Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'"
|
||||
@@ -375,7 +386,7 @@ in
|
||||
/_/* Cache-Control "public, max-age=31536000, immutable"
|
||||
}
|
||||
|
||||
root * /var/www/jakstys.lt
|
||||
root * ${jakstysLandingPage}
|
||||
file_server {
|
||||
precompressed zstd br gzip
|
||||
}
|
||||
@@ -398,6 +409,8 @@ in
|
||||
handle /_matrix/* {
|
||||
reverse_proxy http://127.0.0.1:${toString myData.ports.matrix-synapse}
|
||||
}
|
||||
|
||||
redir @redirects https://m.jakstys.lt{uri} 302
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user