Skip to content

Commit 013005a

Browse files
authored
Merge pull request #1089 from nginx-proxy/user-agent
build: use custom user agent string
2 parents 155535e + 6a5fca4 commit 013005a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ FROM nginxproxy/docker-gen:0.11.1 AS docker-gen
22

33
FROM alpine:3.19.0
44

5-
ARG GIT_DESCRIBE
5+
ARG GIT_DESCRIBE="unknown"
66
ARG ACMESH_VERSION=3.0.7
77

8-
ENV COMPANION_VERSION=$GIT_DESCRIBE \
8+
ENV ACMESH_VERSION=${ACMESH_VERSION} \
9+
COMPANION_VERSION=${GIT_DESCRIBE} \
910
DOCKER_HOST=unix:///var/run/docker.sock \
10-
PATH=$PATH:/app
11+
PATH=${PATH}:/app
1112

1213
# Install packages required by the image
1314
RUN apk add --no-cache --virtual .bin-deps \

app/letsencrypt_service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ function update_cert {
133133
# Base CLI parameters array, used for both --register-account and --issue
134134
local -a params_base_arr
135135
params_base_arr+=(--log /dev/null)
136+
params_base_arr+=(--useragent "nginx-proxy/acme-companion/$COMPANION_VERSION (acme.sh/$ACMESH_VERSION)")
136137
[[ "$DEBUG" == 1 ]] && params_base_arr+=(--debug 2)
137138

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

0 commit comments

Comments
 (0)