summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authors7hoang2022-01-18 02:53:47 -0500
committers7hoang2022-01-20 04:44:14 -0500
commit7ad619e4aa0c1163ea1461a7f4c1684517fb5689 (patch)
tree923b96278424d3742d3d46b84c346de9eaab64ed
parent8c45a1c32c067875a55442dc966a5e82061ff653 (diff)
downloadaur-7ad619e4aa0c1163ea1461a7f4c1684517fb5689.tar.gz
Add Nginx Server Files
-rw-r--r--nginx_http (renamed from nginx_config)5
-rw-r--r--nginx_https19
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/;
+ }
+}