From 37aded67036767de61177a2b42df06e23724d489 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 17 Feb 2022 20:05:24 +0330 Subject: fix --- terminaldweller.com/cargo/docker-compose.yaml | 2 +- terminaldweller.com/cargo/nginx.conf | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/terminaldweller.com/cargo/docker-compose.yaml b/terminaldweller.com/cargo/docker-compose.yaml index f1f990e..50eafab 100644 --- a/terminaldweller.com/cargo/docker-compose.yaml +++ b/terminaldweller.com/cargo/docker-compose.yaml @@ -10,7 +10,7 @@ services: - "7777:8080" restart: unless-stopped volumes: - - ./nginx.conf:/etc/nginx.conf:ro + - ./nginx.conf:/etc/nginx/nginx.conf:ro - /home/ubuntu/cargo:/cargo networks: cargonet: diff --git a/terminaldweller.com/cargo/nginx.conf b/terminaldweller.com/cargo/nginx.conf index 4606586..ce48c85 100644 --- a/terminaldweller.com/cargo/nginx.conf +++ b/terminaldweller.com/cargo/nginx.conf @@ -1,3 +1,6 @@ +events { + worker_connections 1024; +} http { server { listen 8080 ssl; @@ -6,9 +9,11 @@ http { ssl_certificate_key /certs/server.key; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; + sendfile on; + tcp_nopush on; location / { - root /cargo + root /cargo; } } } -- cgit v1.2.3