Skip to content

Commit 42d8ea1

Browse files
committed
docs: Add note on env vars
1 parent e849ad7 commit 42d8ea1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,19 @@ Commands:
121121
Run `mmar <command> -h` to get help for a specific command
122122
```
123123

124+
### Configuring through Environment Variables
125+
126+
You can define the various mmar command flags in environment variables rather than passing them in with the command. Here are the available environment variables along with the corresponding flags:
127+
128+
```
129+
MMAR__SERVER_HTTP_PORT -> mmar server --http-port
130+
MMAR__SERVER_TCP_PORT -> mmar server --tcp-port
131+
MMAR__LOCAL_PORT -> mmar client --local-port
132+
MMAR__TUNNEL_HTTP_PORT -> mmar client --tunnel-http-port
133+
MMAR__TUNNEL_TCP_PORT -> mmar client --tunnel-tcp-port
134+
MMAR__TUNNEL_HOST -> mmar client --tunnel-host
135+
```
136+
124137
## Self-Host
125138

126139
Since everything is open-source, you can easily self-host mmar on your own infrastructure under your own domain.

0 commit comments

Comments
 (0)