Environment setup
Remember to clone Defguard repository recursively (with protos):
With docker-compose
Using docker-compose you can setup a simple stack with:
backend
database (postgres)
VPN gateway
device connected to the gateway
This way you'll have some live stats data to work with.
To do so follow these steps:
Migrate database and insert test network and device:
Run the application:
Cargo
To run backend without docker, you'll need:
postgres database
protobuf compiler (
protoc
)environment variables set
Run postgres with:
You'll find environment variables in .env file. Source them however you like (we recommend https://direnv.net/). Once that's done, you can run backend with:
Frontend
The domain used to access the frontend instance has to match with the cookie domain address (which can be set using DEFGUARD_COOKIE_DOMAIN).
For example, if the cookie domain is set to the default value of localhost, you should access frontend using localhost domain.
Last updated