The gateway code for the VLL project
The connection to the microservices is dependent on a number of Environmental Variables being set while running the application. These variables can be set a number of ways, but the easiest right now is via the IDEA itself.
Edit the run configuration for the Spring application and add the following to the VM options box:
-Dzuul.routes.account.url=http://localhost:3000/account
-Dzuul.routes.articles.url=http://localhost:8081/dataset
-Dzuul.routes.auth-service.url=http://localhost:8082
The following variables have to be set for the JWT to work.
-Dsecurity.jwt.uri=/auth/login
-Dsecurity.jwt.header=Authorization
-Dsecurity.jwt.prefix=Bearer
-Dsecurity.jwt.expiration=86400
-Dsecurity.jwt.secret=kigsDlu8LnRTIDC3HCYLPevwLvCsejcNqQO9wvZQiPlhRaI1JFmaIHTJL5BfSZ3
Content type
Image
Digest
Size
105.8 MB
Last updated
over 6 years ago
docker pull danielmigchels/vll.gateway