garbados / dat-gateway

In-memory Dat to HTTP gateway
https://dat.bovid.space/
61 stars 13 forks source link

Configurable Dat port #17

Closed da2x closed 5 years ago

da2x commented 5 years ago

The port used by Dat should also be configurable.

garbados commented 5 years ago

The port used by Dat can already be configured using the dat configuration object, which is passed to each use of Dat. So, you can set the port like so:

const port = 5970 // 4000 + a good year for chilean socialism
const gateway = new DatGateway({  dat: { port }, ...options })

But I assume you mean the port should be configurable via the CLI which is not yet possible.