ft_transcendence/nginx/conf/locations/icons.conf
Maieul BOYER 573af0bc4b feat(infra): singular dockerfile with vite bundling
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
2025-07-30 21:30:04 +02:00

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;
}