caddy-docker icon indicating copy to clipboard operation
caddy-docker copied to clipboard

no certificates after container build

Open Homer-Sim opened this issue 6 years ago • 0 comments

Hello, I was using your caddy container 1.0.0 for month till my server broke down. it took me some time to buy a new one. I set it today with the old Caddyfile. Logs are showing ow this lines in a loop and I am without any idea after googling for hours

Activating privacy features... 2019/06/23 10:03:11 [INFO][cache:0xc0000b7090] Started certificate maintenance routine
2019/06/23 10:03:12 [INFO] acme: Registering account for [email protected]
2019/06/23 10:03:27 registration error: Post https://acme-v02.api.letsencrypt.org/acme/new-acct: net/http: timeout awaiting response headers
exit status 1

this is my container command:


docker run -d\
    --name caddy \
    --restart=always \
    -v /docker/config/caddyneu/Caddyfile:/etc/Caddyfile \
    -v /docker/config/caddyneu/log:/etc/log \
    -v /docker/config/caddyneu/.caddy:/root/.caddy \
    -v /docker/data/caddy/www/:/srv \
    -p 80:80 \
    -p 443:443 \
    -p 2015:2015 \
    -e ACME_AGREE=true \
    abiosoft/caddy:php
```

and this is my Caddyfile config:
mydns.my-wan.de {
#wordpress
  proxy / 192.168.100.10:8090 {
    transparent
  }
  header / {
    Referrer-Policy "no-referrer"
    Strict-Transport-Security "max-age=31536000; includeSubdomains"
    X-XSS-Protection "1; mode=block"
    X-Content-Type-Options "nosniff"
    X-Frame-Options "SAMEORIGIN"
    Referrer-Policy "same-origin"
  }
  log caddy.log
  errors caddy.errors
  tls [email protected]
  gzip
}

############################################
mydns.my-wan.de/gc-bilder {
  root /srv/gc-bilder
  log    /etc/log/gcbilder-access.log
  errors /etc/log/gcbilder-errors.log
  gzip
}

############################################
mydns.my-wan.de/geo {
  root /srv/geo
#  tls off
  gzip
}

############################################
mydns.my-wan.de/oh2 {
  root /srv/oh2
#  tls off
  gzip
}


############################################
ebooks.mydns.my-wan.de {
#COPS
  proxy / 192.168.100.10:8030
  tls [email protected]
  log    /etc/log/ebooks-access.log
  errors /etc/log/ebooks-errors.log
  gzip

}

############################################
nextcloud.mydns.my-wan.de, newname.my-wan.de {
#nextcloud
  proxy / 192.168.100.10:8020 {
    transparent
    websocket
  }
  tls [email protected]
  gzip
   # client support (e.g. os x calendar / contacts)
  redir /.well-known/carddav /remote.php/carddav 301
  redir /.well-known/caldav /remote.php/caldav 301
  header / {
    Referrer-Policy "no-referrer"
    Strict-Transport-Security "max-age=31536000; includeSubdomains"
    X-XSS-Protection "1; mode=block"
    X-Content-Type-Options "nosniff"
    X-Frame-Options "SAMEORIGIN"
    Referrer-Policy "same-origin"
  }
  log /etc/log/nextcloud-access.log
  errors /etc/log/nextcloud-errors.log
}

############################################
sync.mydns.my-wan.de {
#Syncthing
  proxy / 192.168.100.10:8384 {
    transparent
  }
 
  errors /etc/log/sync-errors.log
  gzip
  tls [email protected]
  timeouts {
  read none
  write none
  header none
}
}


############################################
syncserver.mydns.my-wan.de {
#firefox sync server
    proxy / http://192.168.100.10:5000/token/1.0/sync/1.5 {
        transparent
    }
}

############################################
bw.mydns.my-wan.de {
#bitwarden
  proxy / 192.168.100.10:8040 {
    transparent
    insecure_skip_verify
  }
  proxy /notifications/hub 192.168.100.10:3012 {
  websocket
  }
  proxy /notifications/hub/negotiate 192.168.100.10:8040 {
  transparent
  }
  errors /etc/log/bw-errors.log
  gzip
  tls [email protected]
}
```

Homer-Sim avatar Jun 23 '19 10:06 Homer-Sim