From 8174eb3ead0b1ed3ce7abb20680cb716f4765fdf Mon Sep 17 00:00:00 2001 From: svkalinin Date: Thu, 11 Jul 2024 09:16:39 +0300 Subject: [PATCH] =?UTF-8?q?vault-wrap:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B2=D1=8B=D0=B1=D0=BE=D1=80=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=BF=D1=83=D1=81=D0=BA=D0=B0=20http/https.=20INF-1541?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 8 +++++--- vault.go | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e253b1b..3e32b85 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,11 +8,13 @@ services: environment: - ACTION_ADDRESS=${ACTION_ADDRESS:-https://secret.corp.samsonopt.ru} - VAULT_ADDRESS=${VAULT_ADDRESS} - - LISTEN_PORT=8080 + - LISTEN_PORT=1234 - TLS_KEY_FILE=${TLS_KEY_FILE} - TLS_CERT_FILE=${TLS_CERT_FILE} - TZ=Europe/Moscow restart: always + ports: + - 1234 build: context: . volumes: @@ -26,7 +28,7 @@ services: labels: - "traefik.enable=true" - "traefik.http.routers.secret.rule=Host(`secret.corp.samsonopt.ru`)" - - "traefik.http.services.secret.loadbalancer.server.port=8080" + - "traefik.http.services.secret.loadbalancer.server.port=1234" - "traefik.docker.network=reverse-proxy" - "traefik.http.routers.secret.tls=false" - "traefik.http.services.secret.loadbalancer.server.scheme=http" @@ -50,7 +52,7 @@ services: - traefik-ssl:/ssl/:ro ports: - 80:80 - - 8080:8080 + # - 8080:8080 - 888:888 - 443:443 restart: always diff --git a/vault.go b/vault.go index 4fd755a..f73d1b7 100644 --- a/vault.go +++ b/vault.go @@ -319,3 +319,4 @@ func main() { http.ListenAndServe(listenAddr, nil) } } +