Skip to content

Commit

Permalink
Unify env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmalkmus committed Aug 4, 2021
1 parent 6c42156 commit faac3a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,19 @@ Docker images are available on [DockerHub][docker].

1. Set the following environment variables:

* `AXIOM_URL`: **https://cloud.axiom.co**
* `AXIOM_TOKEN`: **Personal Access** or **Ingest** token. Can be
created under `Profile` or `Settings > Ingest Tokens`. For security reasons it
is advised to use an Ingest Token with minimal privileges only.

1. Run it: `./axiom-honeycomb-proxy` or using docker:
When using Axiom Selfhost:

* `AXIOM_URL`: URL of the Axiom deployment to use.

2. Run it: `./axiom-honeycomb-proxy` or using Docker:

```shell
docker run -p8080:8080/tcp \
-e=AXIOM_URL=<https://cloud.axiom.co> \
-e=AXIOM_TOKEN=<xapt-xxxxx-xxxxxx> \
-e=AXIOM_TOKEN=<YOUR_AXIOM_TOKEN> \
axiomhq/axiom-honeycomb-proxy
```

Expand Down
2 changes: 1 addition & 1 deletion cmd/axiom-honeycomb-proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func main() {
flag.Parse()

if deploymentURL == "" {
log.Fatal("missing AXIOM_URL")
deploymentURL = axiom.CloudURL
}
if accessToken == "" {
log.Fatal("missing AXIOM_TOKEN")
Expand Down

0 comments on commit faac3a3

Please sign in to comment.