Using Vite as a bundler to allow easier builds, with shared library Moved to a single dockerfile that takes an argument to specify which service to use moved some file around to faciliate bundling with vite cried a lot
11 lines
301 B
Text
11 lines
301 B
Text
#forward the post request to the microservice
|
|
location /api/icons/set/ {
|
|
rewrite ^/api/icons/set/(.*) $1 break;
|
|
proxy_pass http://icons/$uri;
|
|
}
|
|
|
|
#handle the get request with nginx, since it does this well
|
|
location /api/icons/get/ {
|
|
rewrite ^/api/icons/get/(.*) /$1 break;
|
|
root /volumes/icons;
|
|
}
|