As a reminder, the gateway runs on a separate device that should eventually be connected to the router. It's primary goal is to authenticate users, track usage, and charge for network usage. Any magic client user within range of your network may utilize your network as long as they agree with your pricing and rules.
During gateway setup, it's best to have your gateway device connected to an existing internet connection before configuring your router.
Fork, improve and PR. View our contributing guide for more details.
While on your gateway server device assuming a unix based system:
git clone https://github.com/magic-network/magic-agent
cd magic-agent
docker-compose pull
docker-compose up -d
Verify the gateway is running:
docker ps
docker logs <container-id from output of previous command>
(optional) Stop the gateway
docker-compose down
For the gateway to run properly, you'll need to complete the config file found in the docker-compose.yml
file
"environments" section.
The IP addresses here should be set to your router's IP address.