fix cors app in docker-compose

This commit is contained in:
hzrd149 2024-01-29 11:17:05 +00:00
parent 9f79c622f7
commit ba03536265
2 changed files with 7 additions and 4 deletions

View File

@ -4,8 +4,10 @@ volumes:
data: {} data: {}
services: services:
# cors: cors:
# image: ghcr.io/hzrd149/docker-cors-anywhere:latest image: ghcr.io/hzrd149/docker-cors-anywhere:v0.4.4
environment:
CORSANYWHERE_REQUIRE_HEADER: ""
imageproxy: imageproxy:
image: ghcr.io/willnorris/imageproxy:v0.11.2 image: ghcr.io/willnorris/imageproxy:v0.11.2
relay: relay:
@ -17,11 +19,11 @@ services:
image: ghcr.io/hzrd149/nostrudel:latest image: ghcr.io/hzrd149/nostrudel:latest
depends_on: depends_on:
- relay - relay
# - cors - cors
- imageproxy - imageproxy
environment: environment:
CACHE_RELAY: relay:8080 CACHE_RELAY: relay:8080
IMAGE_PROXY: imageproxy:8080 IMAGE_PROXY: imageproxy:8080
# CORS_PROXY: cors:8080 CORS_PROXY: cors:8080
ports: ports:
- 8080:80 - 8080:80

View File

@ -50,6 +50,7 @@ server {
listen 80; listen 80;
server_name localhost; server_name localhost;
merge_slashes off;
$PROXY_PASS_BLOCK $PROXY_PASS_BLOCK