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.
22 lines
1.3 KiB
22 lines
1.3 KiB
include /etc/nginx/fastcgi_params;
|
|
# Catalyst requires setting PATH_INFO (instead of SCRIPT_NAME) to $fastcgi_script_name
|
|
fastcgi_param SCRIPT_NAME '';
|
|
fastcgi_param PATH_INFO $fastcgi_script_name;
|
|
fastcgi_pass unix:/var/run/fastcgi/ngcp-panel.sock;
|
|
|
|
add_header 'Access-Control-Allow-Origin' '*' always;
|
|
add_header 'Access-Control-Allow-Headers' 'Prefer,Authorization,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type' always;
|
|
add_header 'Access-Control-Allow-Methods' 'POST, GET, PUT, DELETE, PATCH, OPTIONS' always;
|
|
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range,Location';
|
|
|
|
if ($request_method = 'OPTIONS') {
|
|
add_header 'Access-Control-Allow-Origin' '*' always;
|
|
add_header 'Access-Control-Allow-Headers' 'Prefer,Authorization,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type' always;
|
|
add_header 'Access-Control-Allow-Methods' 'POST, GET, PUT, DELETE, PATCH, OPTIONS' always;
|
|
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range,Location';
|
|
add_header 'Access-Control-Max-Age' '1728000' always;
|
|
add_header 'Content-Type' 'text/plain charset=UTF-8' always;
|
|
add_header 'Content-Length' '0' always;
|
|
return 204;
|
|
}
|