Skip to content

Instantly share code, notes, and snippets.

@gordinmitya
Created September 16, 2019 19:42
Show Gist options
  • Save gordinmitya/7decc0f183093567ca8e4d1bf9f06716 to your computer and use it in GitHub Desktop.
Save gordinmitya/7decc0f183093567ca8e4d1bf9f06716 to your computer and use it in GitHub Desktop.
Lab4 Nginx configuration: serve static files, proxy other requests to python application.
http {
server {
listen 80 default_server;
listen [::]:80 default_server;
location ~ \.(ico|png|jpg) {
root /www/media;
}
location / {
proxy_pass http://app:8080;
}
}
}
events { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment