Skip to content

Commit

Permalink
services/website: cv redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Oct 6, 2024
1 parent 5b94661 commit e12c486
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions modules/services/website.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
{
services.caddy.virtualHosts."fufexan.net".extraConfig = ''
encode zstd gzip
root * /var/www/fufexan.net
file_server
services.caddy.virtualHosts = {
"fufexan.net".extraConfig = ''
encode zstd gzip
root * /var/www/fufexan.net
file_server
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
handle_errors {
@404 {
expression {http.error.status_code} == 404
rewrite @404 /404.html
file_server
}
'';

rewrite @404 /404.html
file_server
}
'';
"cv.fufexan.net".extraConfig = ''
redir https://github.com/fufexan/cv
'';

services.caddy.virtualHosts."dots.fufexan.net".extraConfig = ''
redir https://github.com/fufexan/dotfiles
'';
"dots.fufexan.net".extraConfig = ''
redir https://github.com/fufexan/dotfiles
'';
};
}

0 comments on commit e12c486

Please sign in to comment.