Skip to content

Instantly share code, notes, and snippets.

@danizavtz
Last active April 3, 2020 18:45
Show Gist options
  • Save danizavtz/a06231d0ba4e958e43c2e75733f999f6 to your computer and use it in GitHub Desktop.
Save danizavtz/a06231d0ba4e958e43c2e75733f999f6 to your computer and use it in GitHub Desktop.
server {
server_name api.example.com.br; //seu endereco do dominio.
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:3005;
}
}
server {
server_name example.com.br; //seu endereco do dominio.
location /api {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:3005;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment