Compare commits
3 commits
7313bb8344
...
cbbed221c9
Author | SHA1 | Date | |
---|---|---|---|
|
cbbed221c9 | ||
|
43e6fe30f0 | ||
|
791012f209 |
4 changed files with 25 additions and 6 deletions
|
@ -73,7 +73,7 @@ let
|
||||||
|
|
||||||
## Legacy Method: When there is a 401 response code from the authz endpoint redirect to the portal with the 'rd'
|
## Legacy Method: When there is a 401 response code from the authz endpoint redirect to the portal with the 'rd'
|
||||||
## URL parameter set to $target_url. This requires users update 'auth.example.com/' with their external authelia URL.
|
## URL parameter set to $target_url. This requires users update 'auth.example.com/' with their external authelia URL.
|
||||||
error_page 401 =302 https://auth.fricloud.dk/?rd=$target_url;
|
error_page 401 =302 https://${config.mine.shared.settings.authelia.domain}/?rd=$target_url;
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
mine.shared.lib.authelia.mkProtectedWebsite = { vhostConfig, endpoint ? "/" }: lib.recursiveUpdate vhostConfig {
|
mine.shared.lib.authelia.mkProtectedWebsite = { vhostConfig, endpoint ? "/" }: lib.recursiveUpdate vhostConfig {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
urlpath = "/members";
|
urlpath = "/members";
|
||||||
|
@ -24,4 +24,21 @@ in {
|
||||||
proxyPass = "http://localhost:${builtins.toString port}";
|
proxyPass = "http://localhost:${builtins.toString port}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mine.shared.meta.website-members = {
|
||||||
|
name = "Members Website";
|
||||||
|
description = "This website you are looking at right now, which is our members website.";
|
||||||
|
url = "https://${config.mine.shared.settings.domain}${urlpath}";
|
||||||
|
|
||||||
|
package = {
|
||||||
|
name = "members-website";
|
||||||
|
version = "v0.0.1";
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Members website for ${mine.shared.settings.domain}";
|
||||||
|
license = licenses.free;
|
||||||
|
homepage = "https://git.fricloud.dk/fricloud/server-configs/src/branch/main/machines/gerd/services/member-website/app.py";
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,9 @@ in {
|
||||||
|
|
||||||
environmentFile = config.age.secrets.murmur-env.path;
|
environmentFile = config.age.secrets.murmur-env.path;
|
||||||
password = "$MURMUR_PASSWORD";
|
password = "$MURMUR_PASSWORD";
|
||||||
welcometext = "Welcome to Friclouds Mumble server!";
|
welcometext = ''Welcome to ${config.mine.shared.settings.brand}s Mumble server!
|
||||||
|
Feel free to join our Teeworlds server while waiting. Credentials can be found on the members website here ${config.mine.shared.meta.website-members.url}.
|
||||||
|
'';
|
||||||
|
|
||||||
bandwidth = 130000;
|
bandwidth = 130000;
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,10 +11,10 @@
|
||||||
password = "$TEEWORLDS_PASSWORD";
|
password = "$TEEWORLDS_PASSWORD";
|
||||||
};
|
};
|
||||||
|
|
||||||
mine.shared.meta.teeworlds = {
|
mine.shared.meta.teeworlds = rec {
|
||||||
name = "Teeworlds";
|
name = "Teeworlds";
|
||||||
description = ''We host our own Teeworlds instance. Connect using `nix-shell -p teeworlds --run 'teeworlds "connect teeworlds.fricloud.dk" "password {{secrets.TEEWORLDS_PASSWORD}}"'`, the password is {{secrets.TEEWORLDS_PASSWORD}}'';
|
description = ''We host our own Teeworlds instance. Connect using `nix-shell -p teeworlds --run 'teeworlds "connect ${url}" "password {{secrets.TEEWORLDS_PASSWORD}}"'`, the password is {{secrets.TEEWORLDS_PASSWORD}}'';
|
||||||
url = "";
|
url = "teeworlds.${config.mine.shared.settings.domain}";
|
||||||
|
|
||||||
secrets.auth = config.age.secrets.teeworlds-env.path;
|
secrets.auth = config.age.secrets.teeworlds-env.path;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue