Skip to content

Instantly share code, notes, and snippets.

@martip07
Created December 21, 2015 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martip07/72d1b824d95ae7a23489 to your computer and use it in GitHub Desktop.
Save martip07/72d1b824d95ae7a23489 to your computer and use it in GitHub Desktop.
Configuración básica de NGINX + Proxy
server {
listen 80;
server_name example.com; #example.com es el nombre de dominio
location / {
proxy_pass http://localhost:8080; #8080 es el número de puerto que con el que nos vamos a comunicar
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment