From 7fb13afc1710b55c18e599fc931d4c02fb17587c Mon Sep 17 00:00:00 2001 From: dobefore <1432338032@qq.com> Date: Sun, 25 Jul 2021 11:57:31 +0800 Subject: [PATCH] update --- README.md | 20 +------------------- docs/nginx.conf | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 19 deletions(-) create mode 100644 docs/nginx.conf diff --git a/README.md b/README.md index df647fc..264815c 100644 --- a/README.md +++ b/README.md @@ -61,35 +61,17 @@ Installing requests to ankisyncd. An example configuration with ankisyncd running on the same machine as Nginx - and listening on port `27702` may look like: + and listening on port `27702` may look like ([entire config template click me](https://github.com/ankicommunity/anki-sync-server/blob/develop/docs/nginx.conf)): ``` - worker_processes 1; - -events { -worker_connections 1024; -} - -http { -include mime.types; -default_type application/octet-stream; -sendfile on; - -keepalive_timeout 65; -client_max_body_size 2048m; - server { listen 27701; -# server_name should be modified (LAN eg: 192.168.1.43 ) server_name default; - location / { proxy_http_version 1.0; proxy_pass http://127.0.0.1:27702/; } -} - } ``` diff --git a/docs/nginx.conf b/docs/nginx.conf new file mode 100644 index 0000000..f68761a --- /dev/null +++ b/docs/nginx.conf @@ -0,0 +1,27 @@ + worker_processes 1; + +events { +worker_connections 1024; +} + +http { +include mime.types; +default_type application/octet-stream; +sendfile on; + +keepalive_timeout 65; +client_max_body_size 2048m; + +server { +listen 27701; +# server_name should be modified (LAN eg: 192.168.1.43 ) +server_name default; + + +location / { +proxy_http_version 1.0; +proxy_pass http://127.0.0.1:27702/; +} +} + +} \ No newline at end of file