diff options
-rw-r--r-- | nginx_http (renamed from nginx_config) | 5 | ||||
-rw-r--r-- | nginx_https | 19 |
2 files changed, 21 insertions, 3 deletions
diff --git a/nginx_config b/nginx_http index 17794c1abf04..c34bfc11176c 100644 --- a/nginx_config +++ b/nginx_http @@ -1,8 +1,7 @@ +# nginx http unchunker server { listen 27701; - server_name anki-sync-server-request-unchunker; - types_hash_bucket_size 64; - + type_hash_max_size 4096; location / { proxy_http_version 1.0; diff --git a/nginx_https b/nginx_https new file mode 100644 index 000000000000..e862df326dbb --- /dev/null +++ b/nginx_https @@ -0,0 +1,19 @@ +# nginx https unchunker +server { + listen 27701 ssl; + types_hash_max_size 4096; + + ssl_certificate <cert.pem>; + ssl_certificate_key <cert-key.pem>; + + ssl_session_cache shared:SSL:1m; + ssl_session_timeout 5m; + + ssl_ciphers HIGH:!aNULL:!MD5; + ssl_prefer_server_ciphers on; + + location / { + proxy_http_version 1.0; + proxy_pass http://0.0.0.0:27702/; + } +} |