mirror of
https://github.com/Gurkengewuerz/nitro-docker.git
synced 2024-11-23 00:20:52 +01:00
feat: move imager to assets proxy
This commit is contained in:
parent
8651e60bf8
commit
ff4be289fc
@ -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;
|
||||
|
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user