feat(ops/www): Configure atward.tvl.fyi and its aliases
Change-Id: I20dfb057f8184899226bcb4527010a6982d426f0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3094 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
parent
47d07e7b5f
commit
7926482f1c
2 changed files with 34 additions and 0 deletions
|
@ -18,6 +18,7 @@ in {
|
|||
"${depot.path}/ops/modules/tvl-buildkite.nix"
|
||||
"${depot.path}/ops/modules/tvl-slapd/default.nix"
|
||||
"${depot.path}/ops/modules/tvl-sso/default.nix"
|
||||
"${depot.path}/ops/modules/www/atward.tvl.fyi.nix"
|
||||
"${depot.path}/ops/modules/www/b.tvl.fyi.nix"
|
||||
"${depot.path}/ops/modules/www/cache.tvl.su.nix"
|
||||
"${depot.path}/ops/modules/www/cl.tvl.fyi.nix"
|
||||
|
|
33
ops/modules/www/atward.tvl.fyi.nix
Normal file
33
ops/modules/www/atward.tvl.fyi.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Serve atward, the query redirection ... thing.
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./base.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
# Short link support (i.e. plain http://at) for users with a
|
||||
# configured tvl.fyi/tvl.su search domain.
|
||||
services.nginx.virtualHosts."at-shortlink" = {
|
||||
serverName = "at";
|
||||
extraConfig = "return 302 https://atward.tvl.fyi$request_uri";
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."atward" = {
|
||||
serverName = "atward.tvl.fyi";
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
||||
serverAliases = [
|
||||
"atward.tvl.su"
|
||||
"at.tvl.fyi"
|
||||
"at.tvl.su"
|
||||
];
|
||||
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString config.services.depot.atward.port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue