Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- upstream docker-backends {
- server 172.31.23.60:8080;
- server 172.31.31.247:8080;
- # Por defecto el algorimo de balanceo es round robin
- # descomentar para activar
- # ip_hash;
- least_conn;
- }
- server {
- listen 80;
- server_name ec2-44-220-159-217.compute-1.amazonaws.com;
- # en este caso la peticion solicita por el raiz
- location / {
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- # direccion ip y puerto del servidor que contiene el recurso
- proxy_pass http://docker-backends;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement