1 | |
---|
2 | ## MUST BE in http section |
---|
3 | # perl_modules perl/lib; |
---|
4 | # perl_require %%PREFIX%%/bin/http_api.pl; |
---|
5 | ## invalid variable name "Apache2RESTHandlerRootClass" |
---|
6 | # perl_set Apache2RESTHandlerRootClass "CIF::WebAPI::Plugin"; |
---|
7 | # perl_set Apache2RESTAPIBase "/api"; |
---|
8 | # perl_set Apache2RESTWriterDefault 'json'; |
---|
9 | # perl_set Apache2RESTAppAuth 'CIF::WebAPI::AppAuth'; |
---|
10 | # # feed defaults |
---|
11 | # perl_set CIFLookupLimitDefault 500; |
---|
12 | # perl_set CIFDefaultFeedSeverity "high"; |
---|
13 | |
---|
14 | ## to include in ssl server part |
---|
15 | location /api { |
---|
16 | |
---|
17 | |
---|
18 | location ~ \.pl$ { |
---|
19 | try_files $uri =404; |
---|
20 | gzip off; |
---|
21 | fastcgi_pass 127.0.0.1:8999; |
---|
22 | fastcgi_index index.pl; |
---|
23 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
---|
24 | include fastcgi_params; |
---|
25 | } |
---|
26 | } |
---|
27 | |
---|
28 | |
---|