![]() ![]() sets port 8080 to default or unless otherwise specified in the environmentĪpp.set('port', process.env. In reference to your code example, you want something like this: var express = require("express") The following sets an environment key=value pair and then launches your app. Setting it via the environment is used to help delineate between PRODUCTION and DEVELOPMENT and also a lot of Platforms as a Service use the environment to set the port according to their specs as well as internal Express configs. Or, use your environment to set the port. ![]() This code means set your port to the environment variable PORT or if that is undefined then set it to the literal 3000. The following works if you have something like this in your app.js: http.createServer(app).listen(app.get('port'),Ĭonsole.log("Express server listening on port " + app.get('port')) Įither explicitly hardcode your code to use the port you want, like: app.set('port', || 3000) Reboot your router for the changes to take effect. Put the TCP and UDP ports for XBox Live in the corresponding boxes in your router. Put the IP address of your Xbox in the appropriate box in your router. Find your routers port forwarding section. Once you save then restart nginx: sudo services nginx restart The usual process is: Login to your router. Proxy_set_header X-Forward-For $proxy_add_x_forwarded_for Ssl_protocols TLSv1 TLSv1.1 TLSv1.2 # don’t use SSLv3 ref: POODLE Ssl_certificate_key /etc/nginx/certificate.key Ssl_certificate /etc/nginx/certificate.crt Then edit /etc/nginx/sites-enabled/default with your favorite editorĪnd put the following contents in it: # UpstreamsĮrror_log /var/log/nginx/ If you decide to use nginx you can do the following: In the near future we will be adding support for this, as well as to add ssl.īut for now our suggestion would be to use a reverse proxy like nginx in front of the snap. ![]() Currently the Rocket.Chat snap doesn't have the option to change the port its listening on. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |