mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-11-29 21:32:25 +01:00
build: use custom user agent string
This commit is contained in:
parent
155535e719
commit
6a5fca4124
@ -2,12 +2,13 @@ FROM nginxproxy/docker-gen:0.11.1 AS docker-gen
|
|||||||
|
|
||||||
FROM alpine:3.19.0
|
FROM alpine:3.19.0
|
||||||
|
|
||||||
ARG GIT_DESCRIBE
|
ARG GIT_DESCRIBE="unknown"
|
||||||
ARG ACMESH_VERSION=3.0.7
|
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 \
|
DOCKER_HOST=unix:///var/run/docker.sock \
|
||||||
PATH=$PATH:/app
|
PATH=${PATH}:/app
|
||||||
|
|
||||||
# Install packages required by the image
|
# Install packages required by the image
|
||||||
RUN apk add --no-cache --virtual .bin-deps \
|
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
|
# Base CLI parameters array, used for both --register-account and --issue
|
||||||
local -a params_base_arr
|
local -a params_base_arr
|
||||||
params_base_arr+=(--log /dev/null)
|
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)
|
[[ "$DEBUG" == 1 ]] && params_base_arr+=(--debug 2)
|
||||||
|
|
||||||
# Alternative trusted root CA path, used for test with Pebble
|
# Alternative trusted root CA path, used for test with Pebble
|
||||||
|
Loading…
Reference in New Issue
Block a user