CoolFace
Apppublic

grossgrade/robot-learning-tutorial

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes
nginx.conf59 linesDownload Raw Back to root
1worker_processes auto;2pid /tmp/nginx.pid;3 4events {5    worker_connections 1024;6    use epoll;7    multi_accept on;8}9 10http {11    include /etc/nginx/mime.types;12    default_type application/octet-stream;13 14    access_log /tmp/access.log;15    error_log /tmp/error.log;16 17    sendfile on;18    keepalive_timeout 65;19 20    # Gzip compression21    gzip on;22    gzip_vary on;23    gzip_proxied any;24    gzip_comp_level 5;25    gzip_min_length 256;26    gzip_types27        text/plain28        text/css29        application/javascript30        application/json31        application/xml32        application/rss+xml33        image/svg+xml;34 35    server {36        listen 8080;37        server_name localhost;38 39        root /usr/share/nginx/html;40        index index.html;41 42        # Health check endpoint43        location = /health {44            return 200 "ok";45            add_header Content-Type text/plain;46        }47 48        # Cache immutable build assets from Astro49        location /_astro/ {50            expires 30d;51            add_header Cache-Control "public, max-age=2592000, immutable";52        }53 54        location / {55            try_files $uri $uri/ /index.html;56        }57    }58}59