aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/cargo
diff options
context:
space:
mode:
Diffstat (limited to 'terminaldweller.com/cargo')
-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;
}
}
}