You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
836 B
34 lines
836 B
1 month ago
|
worker_processes 1;
|
||
|
|
||
|
events {
|
||
|
worker_connections 1024;
|
||
|
}
|
||
|
http {
|
||
|
include mime.types;
|
||
|
default_type application/json;
|
||
|
sendfile on;
|
||
|
keepalive_timeout 65;
|
||
|
server {
|
||
|
add_header Access-Control-Allow-Origin *;
|
||
|
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
|
||
|
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
|
||
|
|
||
|
if ($request_method = 'OPTIONS') {
|
||
|
return 204;
|
||
|
}
|
||
|
listen 8082;
|
||
|
server_name localhost;
|
||
|
location /json/ {
|
||
|
default_type application/json;
|
||
|
alias /data/docker/;
|
||
|
}
|
||
|
error_page 500 502 503 504 /50x.html;
|
||
|
location = /50x.html {
|
||
|
root html;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|