Skip to content

Commit

Permalink
Rename token to VMAUTH_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
rwunderer committed Feb 27, 2024
1 parent 61e4e96 commit 5ae2cff
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ endif
REPO = ghcr.io/ramsalt/vmauth
NAME = vmauth-$(VMAUTH_MINOR_VER)

ENV = -e VICTORIA_METRICS_TOKEN=test-token
ENV = -e VMAUTH_TOKEN=test-token

.PHONY: build test push shell run start stop logs clean release

Expand Down
2 changes: 1 addition & 1 deletion bin/actions.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ host ?= localhost
max_try ?= 1
wait_seconds ?= 1
delay_seconds ?= 0
command = curl -s -o /dev/null -H 'Authorization: Bearer ${VICTORIA_METRICS_TOKEN}' -I -w '%{http_code}' http://${host}:8427/debug/pprof/ | grep -q 200
command = curl -s -o /dev/null -H 'Authorization: Bearer ${VMAUTH_TOKEN}' -I -w '%{http_code}' http://${host}:8427/debug/pprof/ | grep -q 200
service = vmauth

default: check-ready
Expand Down
2 changes: 1 addition & 1 deletion templates/config.yml.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
users:
- bearer_token: {{ getenv "VICTORIA_METRICS_TOKEN" }}
- bearer_token: {{ getenv "VMAUTH_TOKEN" }}
url_prefix:
- {{ getenv "VICTORIA_METRICS_URL" "http://victoria-metrics:8428/" }}
4 changes: 2 additions & 2 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ version: "2"
services:
vmetrics:
environment:
VICTORIA_METRICS_TOKEN: test-token
VMAUTH_TOKEN: test-token
image: victoriametrics/victoria-metrics:v$VMAUTH_VER

vmauth:
environment:
VICTORIA_METRICS_TOKEN: test-token
VMAUTH_TOKEN: test-token
VICTORIA_METRICS_URL: http://tests-vmetrics-1:8428/
image: $IMAGE
depends_on:
Expand Down

0 comments on commit 5ae2cff

Please sign in to comment.