fix traefik credential path
This commit is contained in:
parent
28322fab78
commit
4a0f986c62
2 changed files with 4 additions and 23 deletions
|
|
@ -16,32 +16,13 @@
|
|||
};
|
||||
};
|
||||
|
||||
files = {
|
||||
rule = "Host(`files.${config.networking.hostName}.yanlincs.com`)";
|
||||
service = "files";
|
||||
tls = {
|
||||
certResolver = "cloudflare";
|
||||
domains = [{
|
||||
main = "*.${config.networking.hostName}.yanlincs.com";
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
services = {
|
||||
syncthing = {
|
||||
loadBalancer = {
|
||||
servers = [{
|
||||
url = "http://localhost:8384";
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
files = {
|
||||
loadBalancer = {
|
||||
servers = [{
|
||||
url = "http://localhost:5099";
|
||||
url = "http://127.0.0.1:8384";
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
# and will be merged with this base configuration
|
||||
|
||||
# Environment variables for Cloudflare
|
||||
environmentFiles = [ "/run/secrets/traefik-env" ];
|
||||
environmentFiles = [ "/etc/traefik-env" ];
|
||||
};
|
||||
|
||||
# Ensure Traefik can access Docker socket
|
||||
|
|
@ -77,9 +77,9 @@
|
|||
BindPaths = [ "/run/podman/podman.sock:/var/run/docker.sock" ];
|
||||
};
|
||||
|
||||
# NOTE: Cloudflare credentials must be manually created in /run/secrets/traefik-env
|
||||
# NOTE: Cloudflare credentials must be manually created in /etc/traefik-env
|
||||
# The file should contain:
|
||||
# CF_API_EMAIL=your-email@example.com
|
||||
# CF_DNS_API_TOKEN=your-cloudflare-api-token
|
||||
# Make sure to set permissions: chmod 600 /run/secrets/traefik-env
|
||||
# Make sure to set permissions: chmod 600 /etc/traefik-env
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue