using Traefik
- Clone https://github.com/Nuxify/simple-gateway
- Create
.env
(from .env.example) and provide correct values - Setup the services hosts and ports in .env
- Make sure that the docker network is created before running this service (proxy by default)
- Up the network with
make up
- Make sure to appropriately name the
mapped
host to this standard:*_API_URL=
- The first argument of the variable
MUST
be equal to the service prefix in routes.
.env
AUTH_API_URL=http://localhost:8000
is expected to re-route request from,
/v1/auth/{*}
AUTH must be auth. The gateway handles the word cases.
- Plural
services
are automatically pointed to its singular counterpart. Services ending withes
ories
are pointed to their singular counterpart.
Request to /v1/users will point automatically to USER_API_URL={some API}. The `users` service name is automatically casted to `USER`
Made with ❤️ at Nuxify