[cut] KMS_LOGLEVEL and KMS_CLIENTCOUNT

This commit is contained in:
ElevenNotes
2025-05-21 08:52:58 +02:00
parent f4f1ab656f
commit 0e8ba02ebc
3 changed files with 4 additions and 4 deletions

View File

@@ -43,10 +43,8 @@ ARG BUILD_ROOT=/git/fork-py-kms
ENV APP_ROOT=${APP_ROOT}
ENV KMS_LOCALE=1033
ENV KMS_CLIENTCOUNT=26
ENV KMS_ACTIVATIONINTERVAL=120
ENV KMS_RENEWALINTERVAL=259200
ENV KMS_LOGLEVEL="INFO"
# :: multi-stage
COPY --from=util /usr/local/bin /usr/local/bin
@@ -87,7 +85,8 @@ ARG BUILD_ROOT=/git/fork-py-kms
VOLUME ["${APP_ROOT}/var"]
# :: Monitor
HEALTHCHECK --interval=5s --timeout=2s CMD netstat -an | grep -q 1688 || exit 1
HEALTHCHECK --interval=5s --timeout=2s --start-interval=5s \
CMD netstat -an | grep -q 1688
# :: Start
USER ${APP_UID}:${APP_GID}

View File

@@ -56,7 +56,6 @@ ${{ content_environment }}
| `KMS_LOCALE` | see Microsoft LICD specification | 1033 (en-US) |
| `KMS_ACTIVATIONINTERVAL` | Retry unsuccessful after N minutes | 120 (2 hours) |
| `KMS_RENEWALINTERVAL` | re-activation after N minutes | 259200 (180 days) |
| `KMS_LOGLEVEL` | CRITICAL, ERROR, WARNING, INFO, DEBUG, MININFO | INFO |
${{ content_source }}

View File

@@ -4,6 +4,8 @@
if [ ! -z "${DEBUG}" ]; then
KMS_LOGLEVEL="DEBUG"
eleven log debug "setting kms log level to DEBUG"
else
KMS_LOGLEVEL="INFO"
fi
cd /opt/py-kms