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/; proxy_pass http://imgproxy:8080/;
} }
location ^~ /api/imager/ {
proxy_pass http://imager:3000/;
}
location ~* (.*/thumbnail)/(.+\.png)$ { location ~* (.*/thumbnail)/(.+\.png)$ {
# kill cache # kill cache
expires -1; expires -1;

View File

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