Caddy for komodo, not in use
This commit is contained in:
parent
2e37285e54
commit
a1ea7d26ea
2 changed files with 35 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
## MODULES & IMPORTS ##
|
## MODULES & IMPORTS ##
|
||||||
imports = [
|
imports = [
|
||||||
# Common Modules
|
# Common Modules
|
||||||
|
# ../../common/acme
|
||||||
../../common/lxc
|
../../common/lxc
|
||||||
../../common/ssh
|
../../common/ssh
|
||||||
|
|
||||||
|
@ -16,6 +17,7 @@
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
|
|
||||||
# Local Modules
|
# Local Modules
|
||||||
|
# ./modules/caddy
|
||||||
./modules/frp
|
./modules/frp
|
||||||
./modules/forgejo
|
./modules/forgejo
|
||||||
./modules/komodo
|
./modules/komodo
|
||||||
|
|
33
host/komodo/modules/caddy/default.nix
Normal file
33
host/komodo/modules/caddy/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
# FIXME: This works IN server but not connecting via ssh to caenus
|
||||||
|
services.caddy = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts = {
|
||||||
|
|
||||||
|
# "ryot.foo" = {
|
||||||
|
# useACMEHost = "ryot.foo";
|
||||||
|
# extraConfig = ''
|
||||||
|
# reverse_proxy 104.40.4.44:80
|
||||||
|
# '';
|
||||||
|
# };
|
||||||
|
|
||||||
|
"cloud.ryot.foo" = {
|
||||||
|
useACMEHost = "ryot.foo";
|
||||||
|
extraConfig = ''
|
||||||
|
reverse_proxy https://104.40.4.24:443 {
|
||||||
|
transport http {
|
||||||
|
tls_insecure_skip_verify
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
"map.goldenlemon.cc" = {
|
||||||
|
useACMEHost = "goldenlemon.cc";
|
||||||
|
extraConfig = ''
|
||||||
|
reverse_proxy http://104.40.4.44:25566
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue