Skip to content

Instantly share code, notes, and snippets.

@mprkatti
Last active November 8, 2020 12:55
Show Gist options
  • Save mprkatti/eabcb8c68b8dae79b6d74e63cc3bd7b6 to your computer and use it in GitHub Desktop.
Save mprkatti/eabcb8c68b8dae79b6d74e63cc3bd7b6 to your computer and use it in GitHub Desktop.
nginx configuration
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
location / {
}
location /todos {
proxy_pass http://jsonplaceholder.typicode.com ;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment