Skip to content

Instantly share code, notes, and snippets.

@Nagasaki45
Last active March 1, 2016 18:54
Show Gist options
  • Save Nagasaki45/1830411bc5e510c096ae to your computer and use it in GitHub Desktop.
Save Nagasaki45/1830411bc5e510c096ae to your computer and use it in GitHub Desktop.
The Xteams Nginx container configuration file for serving static files from shared volume and passing other requests to the web container.
worker_processes 4;
events { worker_connections 1024; }
http {
server {
listen 8000;
location /static {
include mime.types;
alias /staticfiles;
}
location / {
proxy_pass http://web:8000;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment