Skip to content

Commit faac3a3

Browse files
committed
Unify env vars
1 parent 6c42156 commit faac3a3

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,19 @@ Docker images are available on [DockerHub][docker].
6464

6565
1. Set the following environment variables:
6666

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

72-
1. Run it: `./axiom-honeycomb-proxy` or using docker:
71+
When using Axiom Selfhost:
72+
73+
* `AXIOM_URL`: URL of the Axiom deployment to use.
74+
75+
2. Run it: `./axiom-honeycomb-proxy` or using Docker:
7376

7477
```shell
7578
docker run -p8080:8080/tcp \
76-
-e=AXIOM_URL=<https://cloud.axiom.co> \
77-
-e=AXIOM_TOKEN=<xapt-xxxxx-xxxxxx> \
79+
-e=AXIOM_TOKEN=<YOUR_AXIOM_TOKEN> \
7880
axiomhq/axiom-honeycomb-proxy
7981
```
8082

cmd/axiom-honeycomb-proxy/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func main() {
2525
flag.Parse()
2626

2727
if deploymentURL == "" {
28-
log.Fatal("missing AXIOM_URL")
28+
deploymentURL = axiom.CloudURL
2929
}
3030
if accessToken == "" {
3131
log.Fatal("missing AXIOM_TOKEN")

0 commit comments

Comments
 (0)