From 271d40105dc08e09606847c564a2ffe7e41cef5a Mon Sep 17 00:00:00 2001 From: dobefore <46564102+dobefore@users.noreply.github.com> Date: Sat, 1 May 2021 13:27:30 +0800 Subject: [PATCH 1/5] update anki --- src/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requirements.txt b/src/requirements.txt index 3623492..ed51c6a 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -1,7 +1,7 @@ # THE FILE WAS GENERATED BY POETRY, DO NOT EDIT! -anki==2.1.40; python_version >= "3.8" +anki==2.1.43; python_version >= "3.8" beautifulsoup4==4.9.3 certifi==2020.12.5; python_version >= "3.8" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.8" chardet==4.0.0; python_version >= "3.8" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.8" From 93b5e4981e5607b9f8751ec75dfe65ce4c08cc7a Mon Sep 17 00:00:00 2001 From: dobefore <1432338032@qq.com> Date: Sat, 17 Jul 2021 19:55:55 +0800 Subject: [PATCH 2/5] update_readme --- README.md | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0324c0a..a6fc814 100644 --- a/README.md +++ b/README.md @@ -64,15 +64,32 @@ Installing and listening on port `27702` may look like: ``` - server { - listen 27701; - server_name default; + worker_processes 1; - location / { - proxy_http_version 1.0; - proxy_pass http://localhost:27702/; - } - } +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 default; + + +location / { +proxy_http_version 1.0; +proxy_pass http://127.0.0.1:27702/; +} +} + +} ``` 5. Run ankisyncd: From 5964398381cee2fe7db04f1ba2e30b8ff19cc338 Mon Sep 17 00:00:00 2001 From: dobefore <1432338032@qq.com> Date: Sat, 17 Jul 2021 20:15:14 +0800 Subject: [PATCH 3/5] rollback_ankmodver --- src/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requirements.txt b/src/requirements.txt index ed51c6a..3623492 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -1,7 +1,7 @@ # THE FILE WAS GENERATED BY POETRY, DO NOT EDIT! -anki==2.1.43; python_version >= "3.8" +anki==2.1.40; python_version >= "3.8" beautifulsoup4==4.9.3 certifi==2020.12.5; python_version >= "3.8" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.8" chardet==4.0.0; python_version >= "3.8" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.8" From acb814ab59a07d8f68b343fed905a5ab57b11f26 Mon Sep 17 00:00:00 2001 From: dobefore <1432338032@qq.com> Date: Sat, 17 Jul 2021 20:18:30 +0800 Subject: [PATCH 4/5] update_readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a6fc814..df647fc 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ client_max_body_size 2048m; server { listen 27701; +# server_name should be modified (LAN eg: 192.168.1.43 ) server_name default; 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 5/5] 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