mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-06-02 03:01:03 +02:00
fix cors app in docker-compose
This commit is contained in:
parent
9f79c622f7
commit
ba03536265
@ -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
|
||||||
|
@ -50,6 +50,7 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
|
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
merge_slashes off;
|
||||||
|
|
||||||
$PROXY_PASS_BLOCK
|
$PROXY_PASS_BLOCK
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user