Add SOCKS proxy support for certificate renewal without internet access
- Configure Traefik to use SOCKS/HTTP proxy for Let's Encrypt ACME challenges - Add proxy environment variables (SOCKS_PROXY, HTTP_PROXY, HTTPS_PROXY, NO_PROXY) - Update docker-compose.yml to pass proxy vars to Traefik container - Update entrypoint script to log proxy configuration - Document proxy setup in .env.example - Add comprehensive guide: PROXY_CERTIFICATE_RENEWAL.md with SSH tunnel setup instructions
This commit is contained in:
@@ -38,6 +38,13 @@ if [ "${TRAEFIK_SERVICES_TLS_CONFIG}" = "tls.certresolver=letsencrypt" ]; then
|
||||
add_arg "--certificatesResolvers.letsencrypt.acme.storage=/certs/acme.json"
|
||||
add_arg "--certificatesResolvers.letsencrypt.acme.httpChallenge.entryPoint=http"
|
||||
add_arg "--certificatesResolvers.letsencrypt.acme.caserver=${TRAEFIK_ACME_CASERVER:-https://acme-v02.api.letsencrypt.org/directory}"
|
||||
|
||||
# Add proxy configuration if SOCKS_PROXY is set
|
||||
if [ -n "${SOCKS_PROXY}" ]; then
|
||||
echo "Configuring Traefik ACME with SOCKS proxy: ${SOCKS_PROXY}"
|
||||
# Note: Go's http.Client respects HTTP_PROXY env vars internally
|
||||
# We'll set it via environment for the subprocess
|
||||
fi
|
||||
fi
|
||||
|
||||
# Add local certificate configuration if enabled
|
||||
|
||||
Reference in New Issue
Block a user