proxy cleanup and make cloudflared pull updates
This commit is contained in:
parent
ef693c8b2c
commit
d055c67285
2 changed files with 1 additions and 38 deletions
|
@ -2,50 +2,12 @@
|
|||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts = {
|
||||
# "ryot.foo" = {
|
||||
# useACMEHost = "ryot.foo";
|
||||
# extraConfig = ''
|
||||
# reverse_proxy 104.40.4.44:80
|
||||
# '';
|
||||
# };
|
||||
|
||||
"cloudflared.ryot.foo" = {
|
||||
useACMEHost = "ryot.foo";
|
||||
extraConfig = ''
|
||||
reverse_proxy localhost:14333
|
||||
'';
|
||||
};
|
||||
|
||||
# "drive.ryot.foo" = {
|
||||
# useACMEHost = "ryot.foo";
|
||||
# extraConfig = ''
|
||||
# reverse_proxy http://104.40.4.24:8181 {
|
||||
# header_up Host {host}
|
||||
# header_up X-Forwarded-For {remote}
|
||||
# header_up X-Forwarded-Proto {scheme}
|
||||
# header_up X-Forwarded-Protocol {scheme}
|
||||
# header_up X-Forwarded-Port {server_port}
|
||||
# }
|
||||
# '';
|
||||
# };
|
||||
|
||||
# "opn.ryot.foo" = {
|
||||
# useACMEHost = "ryot.foo";
|
||||
# extraConfig = ''
|
||||
# reverse_proxy 104.40.4.1
|
||||
# '';
|
||||
# };
|
||||
|
||||
# "pve.ryot.foo" = {
|
||||
# useACMEHost = "ryot.foo";
|
||||
# extraConfig = ''
|
||||
# reverse_proxy 10.163.22.82:8006 {
|
||||
# transport http {
|
||||
# tls_insecure_skip_verify
|
||||
# }
|
||||
# }
|
||||
# '';
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
autoStart = true;
|
||||
extraOptions = [
|
||||
"--network=host"
|
||||
"--pull=newer"
|
||||
];
|
||||
hostname = "cloudflared";
|
||||
volumes = [
|
||||
|
|
Loading…
Add table
Reference in a new issue