To run logjam you need to tell it where your PocketBase server is, using a PocketBase base-URL.
You can set this using 2 different methods.
Method №1 is to use the POCKETBASE_URL
environment-variable.
For example, if you wanted to change the PocketBase base-URL TCP port to http://example.com/api
then you could do something similar to the following:
POCKETBASE_URL="http://example.com/api" ./logjam
Method №2 is to use the --pburl
command-line switch/flag.
For example, if you wanted to change the PocketBase base-URL TCP port to http://example.com/api
then you could do something similar to the following:
./logjam --pburl='http://example.com/api'
first you need to get the binary by one of this ways :
- downloading it from releases page
- building it your self
- leaving the build and run to docker!
- download the latest binary from here /~https://github.com/reiver/logjam/releases
- make it executable like
chmod +x ./logjam
- run it!
./logjam
note: default listen host(0.0.0.0
) or listen port(8090
) can be changed using the --listen-host
and --listen-port
arguments.
first make sure you have golang installed (>=v1.20)
- clone the repository and
cd
into it. - build it using go like
go build .
- run it!
./logjam
make sure you have docker installed first.
- clone the repository and
cd
into it. - if you have docker-compose installed then run
docker-compose up
- if you choose to build and run it with docker itself then :
- build the image:
docker build -t logjam:latest .
- create and run the container:
docker run --rm logjam:latest
- build the image:
logjam includes a web-server.
By default this web-server runs on TCP port 8080
.
This can be changed to a different TCP port using either of 2 different methods.
Method №1 is to use the PORT
environment-variable.
For example, if you wanted to change the web-server's TCP port to 9000
then you could do something similar to the following:
PORT=9000 ./logjam
Method №2 is to use the --src
command-line switch/flag.
For example, if you wanted to change the web-server's TCP port to 9000
then you could do something similar to the following:
./logjam --src=9000