🔧 Added a flag to docker-compose
This commit is contained in:
21
proxy.conf
21
proxy.conf
@@ -1,22 +1,7 @@
|
||||
server {
|
||||
listen 8050;
|
||||
location / {
|
||||
if ($request_method = 'OPTIONS') {
|
||||
add_header 'Access-Control-Max-Age' 1728000;
|
||||
add_header 'Access-Control-Allow-Origin' '*';
|
||||
add_header 'Access-Control-Allow-Headers' 'Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,
|
||||
X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
|
||||
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH';
|
||||
add_header 'Content-Type' 'application/json';
|
||||
add_header 'Content-Length' 0;
|
||||
return 204;
|
||||
}
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' '*';
|
||||
add_header 'Access-Control-Allow-Headers' 'Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,
|
||||
X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
|
||||
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH';
|
||||
proxy_pass http://localhost:8050;
|
||||
proxy_pass http://host.docker.internal:8050;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +10,7 @@ server {
|
||||
listen 3080;
|
||||
|
||||
location /comicvine-service {
|
||||
proxy_pass http://localhost:3080;
|
||||
proxy_pass http://host.docker.internal:3080;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +18,6 @@ server {
|
||||
listen 3000;
|
||||
|
||||
location /import {
|
||||
proxy_pass http://localhost:3000;
|
||||
proxy_pass http://host.docker.internal:3000;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user