We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e49c149 commit 0debca9Copy full SHA for 0debca9
nix/nginx/conf/custom.conf
@@ -24,9 +24,10 @@ location /post {
24
if ($request_method != 'POST'){
25
return 405;
26
}
27
- if ($http_accept != "application/json") {
+ if ($http_content_type != "application/json") {
28
return 406;
29
30
+ default_type application/json;
31
echo_read_request_body;
32
echo $request_body;
33
nix/nginx/conf/nginx.conf
@@ -1,7 +1,11 @@
1
daemon off;
2
pid ./nginx.pid;
3
4
-events {}
+worker_processes auto;
5
+
6
+events {
7
+ worker_connections 1024;
8
+}
9
10
http {
11
0 commit comments