From 982e36fa66d40918f836b7c8999309f9212e0bc0 Mon Sep 17 00:00:00 2001 From: Bryce Date: Fri, 10 Apr 2026 11:32:49 -0700 Subject: [PATCH] makes compression --- .htpasswd | 1 + docker-compose.yml | 1 + nginx.conf | 17 +++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 .htpasswd diff --git a/.htpasswd b/.htpasswd new file mode 100644 index 0000000..193fcb6 --- /dev/null +++ b/.htpasswd @@ -0,0 +1 @@ +admin:$apr1$hg9vIAql$9UWH05NqGM05ewW2VXPZu/ diff --git a/docker-compose.yml b/docker-compose.yml index 13b027c..c15c499 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,6 +24,7 @@ services: restart: unless-stopped volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro + - ./.htpasswd:/etc/nginx/.htpasswd:ro network_mode: service:tailscale volumes: diff --git a/nginx.conf b/nginx.conf index 80669e7..a5089ff 100644 --- a/nginx.conf +++ b/nginx.conf @@ -6,10 +6,27 @@ http { include /etc/nginx/mime.types; default_type application/octet-stream; + gzip on; + gzip_vary on; + gzip_min_length 256; + gzip_proxied any; + gzip_types + application/json + application/javascript + application/xml + application/xml+rss + text/css + text/javascript + text/plain + text/xml; + server { listen 80; server_name _; + auth_basic "Restricted Access"; + auth_basic_user_file /etc/nginx/.htpasswd; + client_max_body_size 100M; location / {