This commit is contained in:
Vassiliy Yegorov
2021-10-09 10:50:26 +03:00
parent 7a541001c2
commit 39b5492c5e
2 changed files with 5 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ esac
mkdir $PATH_TO_COPY || exit 1 mkdir $PATH_TO_COPY || exit 1
} }
CERT=$(curl ${DEBUG_CURL} $API_SERVER -X POST -H "Authorization: Bearer $TOKEN" --form "domain=$DOMAIN" | jq -r '.data.chain') CERT=$(curl ${DEBUG_CURL} $API_SERVER -X POST -H "Authorization: Bearer $TOKEN" --form "domain=$DOMAIN" | jq -r '.data.crt')
[[ ! $? -eq 0 ]] && exit 1 [[ ! $? -eq 0 ]] && exit 1
echo -e $CERT > $CERT_NAME echo -e $CERT > $CERT_NAME

View File

@@ -11,14 +11,14 @@ services:
- 443:443 - 443:443
# - 6443:6443 # - 6443:6443
environment: environment:
- HETZNER_API_KEY: ${HETZNER_API_KEY} HETZNER_API_KEY: ${HETZNER_API_KEY}
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
- ./data/traefik.yml:/traefik.yml:ro - ./data/traefik.yml:/traefik.yml:ro
- ./data/acme.json:/acme.json - ./data/acme.json:/acme.json
# - ./data/custom/:/custom/:ro # - ./data/custom/:/custom/:ro
# - ./data/basic.auth:/basic.auth - ./data/basic.auth:/basic.auth
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.traefik.entrypoints=https" - "traefik.http.routers.traefik.entrypoints=https"
@@ -27,8 +27,8 @@ services:
- "traefik.http.routers.traefik.tls.certresolver=letsEncrypt" - "traefik.http.routers.traefik.tls.certresolver=letsEncrypt"
- "traefik.http.routers.traefik.service=api@internal" - "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.services.traefik-traefik.loadbalancer.server.port=888" - "traefik.http.services.traefik-traefik.loadbalancer.server.port=888"
# - "traefik.http.routers.traefik.middlewares=traefik-auth" - "traefik.http.routers.traefik.middlewares=traefik-auth"
# - "traefik.http.middlewares.traefik-auth.basicAuth.usersFile=/basic.auth" - "traefik.http.middlewares.traefik-auth.basicAuth.usersFile=/basic.auth"
# global redirect to https # global redirect to https
- "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)" - "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"