As an end user, I want the Resource service to meet the requirements.
-
The Resource service fulfills the documentation. -
The Resource service stores its images on the external "Image service". -
The Resource service does not communicate directly with the Auth Service. -
The Resource service is deployed at the route defined in assignment-routes.json (see example Nginx config below) -
References to the Resource service are corrected in the assignment-routes.json. -
Extra features are documented and linked in the assignment report.
Deploying the Resource Service
The Resource service should be deployed on your CSCloud server. This is an example route for the NGINX config:
location /picture-it/api/v1/images/ {
proxy_pass http://localhost:3011/api/v1/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
}
Edited by Johan Leitet