threejs-test/nginx.conf
Juan Sebastian Montoya aeceab7cd7 Add Docker setup with nginx for serving the game
- Add Dockerfile using nginx:alpine base image
- Add docker-compose.yml for easy container management
- Add nginx.conf with minimal configuration and gzip compression
- Service renamed to 'ui' for better naming convention
2025-11-25 14:41:17 -05:00

17 lines
308 B
Nginx Configuration File

server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ =404;
}
# Enable gzip compression
gzip on;
gzip_types text/html text/css application/javascript;
gzip_min_length 1000;
}