mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-11-23 00:52:02 +01:00
Merge pull request #1089 from nginx-proxy/user-agent
build: use custom user agent string
This commit is contained in:
commit
013005aca1
@ -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 \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user