added cloudflared
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
environmentFile = config.sops.secrets.cloudflare-api-key.path;
|
||||
virtualHosts."paperless.john-stream.com".extraConfig = ''
|
||||
virtualHosts."panoptes.john-stream.com".extraConfig = ''
|
||||
reverse_proxy 192.168.1.110:8000
|
||||
tls {
|
||||
dns cloudflare {env.CF_API_TOKEN}
|
||||
@@ -19,4 +19,9 @@
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
|
||||
# systemd.services.caddy.serviceConfig = {
|
||||
# # EnvironmentFile = "/etc/caddy/cloudflare.env";
|
||||
# AmbientCapabilities = "CAP_NET_BIND_SERVICE";
|
||||
# };
|
||||
}
|
||||
Reference in New Issue
Block a user