taobataoma / meanTorrent

meanTorrent - MEAN.JS BitTorrent Private Tracker - Full-Stack JavaScript Using MongoDB, Express, AngularJS, and Node.js, A BitTorrent Private Tracker CMS with Multilingual, and IRC announce support, CloudFlare support. Demo at:
https://mean.im
Other
491 stars 148 forks source link

How to setup with nginx on ubuntu 16 or ubuntu 17 #86

Open haffax7 opened 5 years ago

haffax7 commented 5 years ago

502 Bad Gateway is displayed. Can anyone help me? I tried like this Thanks

server {
    listen 80;
    listen [::]:80;

    server_name zzzzz.com;

    location / {
        proxy_pass http://localhost:3000/;
        proxy_set_header Host $http_host;
        proxy_http_version 1.1;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_redirect http://zzzzz.com:3000/ https://zzzzz.com;
    }
    location ~ /\.ht {
        deny all;
    }
}
andrey1103 commented 5 years ago

Just start the meantorrent with npm run start:prod.

hbs2 commented 3 years ago

Just start the meantorrent with npm run start:prod.

do you get it to work ?