mirror of
https://codeberg.org/ultra/nixos-dotfiles.git
synced 2024-11-30 01:03:08 +02:00
20 lines
459 B
Nix
20 lines
459 B
Nix
|
inputs: { config, ... }: {
|
||
|
services.caddy = {
|
||
|
enable = true;
|
||
|
/*
|
||
|
virtualHosts = {
|
||
|
"https://gra.phite.ro".extraConfig = ''
|
||
|
root * /home/ultra/code/html/blog
|
||
|
'';
|
||
|
"https://git.gra.phite.ro".extraConfig = ''
|
||
|
reverse_proxy :3000
|
||
|
'';
|
||
|
"https://phite.ro".extraConfig = ''
|
||
|
redir https://gra.phite.ro{uri} permanent
|
||
|
'';
|
||
|
};
|
||
|
*/
|
||
|
configFile = /home/ultra/code/html/blog/Caddyfile;
|
||
|
};
|
||
|
}
|