Compare commits
2 commits
25bf425c78
...
29b289cabb
Author | SHA1 | Date | |
---|---|---|---|
|
29b289cabb | ||
|
9e800c9882 |
1 changed files with 14 additions and 12 deletions
|
@ -3,18 +3,20 @@
|
|||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
configFile = pkgs.writeText "Caddyfile" ''
|
||||
https://git.huwe.mooo.com {
|
||||
reverse_proxy localhost:3000
|
||||
}
|
||||
virtualHosts = {
|
||||
"https://git.huwe.mooo.com" = {
|
||||
extraConfig = "reverse_proxy localhost:3000";
|
||||
};
|
||||
"https://files.huwe.mooo.com" = {
|
||||
extraConfig = ''
|
||||
root * /var/www/file_server
|
||||
file_server
|
||||
|
||||
https://files.huwe.mooo.com {
|
||||
reverse_proxy localhost:444
|
||||
}
|
||||
|
||||
https://cal.huwe.mooo.com {
|
||||
reverse_proxy localhost:5232
|
||||
}
|
||||
'';
|
||||
'';
|
||||
};
|
||||
"https://cal.huwe.mooo.com" = {
|
||||
extraConfig = "reverse_proxy localhost:5232";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue