Skip to content

Instantly share code, notes, and snippets.

@leandromoreira
Last active April 12, 2020 11:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save leandromoreira/5d97d0b03850312e0dc547a45c994f2d to your computer and use it in GitHub Desktop.
http {
upstream backend {
server ingest;
}
server {
listen 8080;
location / {
proxy_cache my_cache;
proxy_cache_lock on;
proxy_pass http://backend;
}
location /app {
alias /usr/local/openresty/nginx/;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment