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/;
|
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;
|
||||||
|
@ -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]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user