worker_processes auto; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; upstream pghs_service { server pghs:8888; } server { listen 80; location / { root /var/www/pghs.xsquare; index index.html; } location /pghs { proxy_pass http://pghs_service; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /files { alias /var/www/pghs.xsquare.files.local; autoindex on; allow all; } } }