Skip to content

Commit

Permalink
Merge pull request #1089 from nginx-proxy/user-agent
Browse files Browse the repository at this point in the history
build: use custom user agent string
  • Loading branch information
buchdag committed Jan 16, 2024
2 parents 155535e + 6a5fca4 commit 013005a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ FROM nginxproxy/docker-gen:0.11.1 AS docker-gen

FROM alpine:3.19.0

ARG GIT_DESCRIBE
ARG GIT_DESCRIBE="unknown"
ARG ACMESH_VERSION=3.0.7

ENV COMPANION_VERSION=$GIT_DESCRIBE \
ENV ACMESH_VERSION=${ACMESH_VERSION} \
COMPANION_VERSION=${GIT_DESCRIBE} \
DOCKER_HOST=unix:///var/run/docker.sock \
PATH=$PATH:/app
PATH=${PATH}:/app

# Install packages required by the image
RUN apk add --no-cache --virtual .bin-deps \
Expand Down
1 change: 1 addition & 0 deletions app/letsencrypt_service
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function update_cert {
# Base CLI parameters array, used for both --register-account and --issue
local -a params_base_arr
params_base_arr+=(--log /dev/null)
params_base_arr+=(--useragent "nginx-proxy/acme-companion/$COMPANION_VERSION (acme.sh/$ACMESH_VERSION)")
[[ "$DEBUG" == 1 ]] && params_base_arr+=(--debug 2)

# Alternative trusted root CA path, used for test with Pebble
Expand Down

0 comments on commit 013005a

Please sign in to comment.