Skip to content

Instantly share code, notes, and snippets.

@airtonGit
Created May 16, 2020 21:37
Show Gist options
  • Save airtonGit/0fdf7f41896e53b08e9c0143796b046d to your computer and use it in GitHub Desktop.
Save airtonGit/0fdf7f41896e53b08e9c0143796b046d to your computer and use it in GitHub Desktop.
Exemplo simples nginx reverse proxy
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location /api/ {
proxy_pass http://localhost:5000/;
}
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