diff --git a/80.conf b/80.conf index f4b0b65..e6775a7 100644 --- a/80.conf +++ b/80.conf @@ -3,21 +3,7 @@ server { server_name inno-ijl.ru; # index index.php index.html index.htm index.nginx-debian.html; - # location /api/ { - # # add_header 'Access-Control-Allow-Origin' '*'; - # # add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; - # # add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; - # # add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; - # proxy_pass http://backend/; - # } - - # location /multystub/ { - # # add_header 'Access-Control-Allow-Origin' '*'; - # add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; - # add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; - # add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; - # proxy_pass http://multystub/; - # } + include "parts/api-multystub.conf"; location / { add_header 'Access-Control-Allow-Origin' '*';