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: {}
services:
# cors:
# image: ghcr.io/hzrd149/docker-cors-anywhere:latest
cors:
image: ghcr.io/hzrd149/docker-cors-anywhere:v0.4.4
environment:
CORSANYWHERE_REQUIRE_HEADER: ""
imageproxy:
image: ghcr.io/willnorris/imageproxy:v0.11.2
relay:
@ -17,11 +19,11 @@ services:
image: ghcr.io/hzrd149/nostrudel:latest
depends_on:
- relay
# - cors
- cors
- imageproxy
environment:
CACHE_RELAY: relay:8080
IMAGE_PROXY: imageproxy:8080
# CORS_PROXY: cors:8080
CORS_PROXY: cors:8080
ports:
- 8080:80

View File

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