Skip to content

Commit

Permalink
feat: outsource garudalinux.org to Cloudflare Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dr460nf1r3 committed Oct 17, 2023
1 parent 8ffc5bc commit 05fc28a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 52 deletions.
10 changes: 0 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,6 @@
category = "infra-nix";
command = ipv6-generator;
}
{
name = "update-website";
help = "Updates the locked website commit and deploys the changes";
category = "infra-nix";
command = ''
nix flake lock --update-input src-garuda-website
ansible-playbook playbooks/garuda.yml -l immortalis
ansible-playbook playbooks/apply.yml -l immortalis
'';
}
{
name = "update-toolbox";
help = "Updates the locked Chaotic toolbox commit and deploys the changes";
Expand Down
42 changes: 0 additions & 42 deletions nixos/hosts/web-front.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,6 @@
services.nginx = {
enable = true;
virtualHosts = {
"garudalinux.org" = {
addSSL = true;
extraConfig = ''
${garuda-lib.setRealIpFromConfig}
real_ip_header CF-Connecting-IP;
'';
http3 = true;
locations = {
"/" = {
index = "index.html";
root = sources.garuda-website;
};
"/discord" = {
extraConfig = "expires 12h;";
return = "307 https://discord.gg/w5jbhq3juh";
};
"/telegram" = {
extraConfig = "expires 12h;";
return = "307 https://t.me/garudalinux";
};
"/os/garuda-update/backuprepo" = {
extraConfig = ''
rewrite ^/os/garuda-update/backuprepo/(.*)$ https://geo-mirror.chaotic.cx/chaotic-aur/$1 redirect;
'';
};
"/os/garuda-update/remote-update" = {
extraConfig = "expires 12h;";
return = "301 https://gitlab.com/garuda-linux/themes-and-settings/settings/garuda-common-settings/-/snippets/2147440/raw/main/remote-update";
};
"/os/garuda-update/garuda-hotfixes-version" = {
extraConfig = "expires 5m;";
return = "200 '1'";
};
"/.well-known/webfinger" = {
extraConfig = "expires 12h;";
return = "301 https://social.garudalinux.org$request_uri";
};
};
# quic = true;
serverAliases = [ "www.garudalinux.org" ];
useACMEHost = "garudalinux.org";
};
"cloud.garudalinux.org" = {
addSSL = true;
extraConfig = ''
Expand Down

0 comments on commit 05fc28a

Please sign in to comment.