aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-02-17 16:35:24 +0000
committerterminaldweller <thabogre@gmail.com>2022-02-17 16:35:24 +0000
commit37aded67036767de61177a2b42df06e23724d489 (patch)
tree03f322d85de0f7d693ef01024acab2ffdbb4fb30
parentfix (diff)
downloadscripts-37aded67036767de61177a2b42df06e23724d489.tar.gz
scripts-37aded67036767de61177a2b42df06e23724d489.zip
fix
-rw-r--r--terminaldweller.com/cargo/docker-compose.yaml2
-rw-r--r--terminaldweller.com/cargo/nginx.conf7
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;
}
}
}