You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
555 B

  1. map $http_host $pm2 {
  2. someprojectone.build.local.wpstudio.ru pm2-someprojectone;
  3. someprojecttwo.build.local.wpstudio.ru pm2-someprojecttwo;
  4. }
  5. server {
  6. listen 80;
  7. server_name
  8. someprojectone.build.local.wpstudio.ru
  9. someprojecttwo.build.local.wpstudio.ru
  10. ;
  11. location / {
  12. resolver 127.0.0.11;
  13. proxy_pass http://$pm2:3000;
  14. proxy_set_header Upgrade $http_upgrade;
  15. proxy_set_header Connection 'upgrade';
  16. proxy_set_header Host $host;
  17. proxy_cache_bypass $http_upgrade;
  18. }
  19. }