| | 494 | {{{ |
| | 495 | sudo apt-get install nginx |
| | 496 | }}} |
| | 497 | |
| | 498 | Na pasta /etc/nginx/sites-enabled criar o arquivo terrama2 com o seguinte conteúdo: |
| | 499 | {{{ |
| | 500 | server { |
| | 501 | server_name http://terrama2.dpi.inpe.br; |
| | 502 | listen 6543; |
| | 503 | |
| | 504 | location / { |
| | 505 | proxy_set_header X-Real-IP $remote_addr; |
| | 506 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| | 507 | proxy_set_header Host $http_host; |
| | 508 | proxy_set_header X-NginX-Proxy true; |
| | 509 | proxy_pass http://127.0.0.1:38000; |
| | 510 | proxy_redirect off; |
| | 511 | } |
| | 512 | } |
| | 513 | |
| | 514 | }}} |
| | 515 | |
| | 516 | sudo service nginx restart |