server { listen 80; listen [::]:80; server_name play.swee.codes; root /mnt/hdd/play; index index.html; brotli on; brotli_static on; gzip on; gzip_static on; try_files $uri $uri.html $uri/ =404; location /edu { auth_basic "School purposes only!"; auth_basic_user_file /etc/nginx/htpasswd.edu; } }