1
0
Fork 0

cloudflared: Add extra_hosts

This commit is contained in:
Daniel Kempkens 2022-11-27 17:59:57 +01:00
parent e48f2e4661
commit 47ad45444a
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -5,6 +5,21 @@ in
{
virtualisation.arion.projects.webserver.settings = {
services = {
cloudflared = {
service = {
image = "cloudflare/cloudflared:latest";
container_name = "cloudflared";
restart = "unless-stopped";
command = [ "tunnel" "--no-autoupdate" "run" "--token" secret.container.webserver.cloudflared.config.token ];
extra_hosts = [
"host.docker.internal:host-gateway"
];
labels = {
"com.centurylinklabs.watchtower.enable" = "true";
};
};
};
mosquitto = {
service = {
image = "eclipse-mosquitto:2";
@ -21,18 +36,6 @@ in
};
};
cloudflared = {
service = {
image = "cloudflare/cloudflared:latest";
container_name = "cloudflared";
restart = "unless-stopped";
command = [ "tunnel" "--no-autoupdate" "run" "--token" secret.container.webserver.cloudflared.config.token ];
labels = {
"com.centurylinklabs.watchtower.enable" = "true";
};
};
};
nifoc-pw-docs = {
service = {
image = "ghcr.io/nifoc/nifoc.pw-docs:master";