feat: move imager to assets proxy

This commit is contained in:
Niklas 2023-10-26 01:10:04 +02:00
parent 8651e60bf8
commit ff4be289fc
2 changed files with 7 additions and 2 deletions

View File

@ -39,6 +39,10 @@ server {
proxy_pass http://imgproxy:8080/;
}
location ^~ /api/imager/ {
proxy_pass http://imager:3000/;
}
location ~* (.*/thumbnail)/(.+\.png)$ {
# kill cache
expires -1;

View File

@ -95,12 +95,13 @@ services:
imager:
build:
context: imager
depends_on:
# proxied through nginx of assets
- assets
env_file:
- .env
volumes:
- ./assets/:/app/assets/
ports:
- 3001:3000
restart: unless-stopped
networks: [nitro]