Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [node.js]

Node.js is an event based, asynchronous I/O framework that uses Google's V8 JavaScript engine. Node.js is commonly used for heavy client-server JavaScript applications. NOTE: Please read the Tag-Wiki before asking questions.

-1
votes
0answers
33 views

installed react Native [on hold]

I tried to run the react native app for the first time and this error showed! I tried to search for it, and found no solution for it! undefined is not a function (evaluating 'Object....
1
vote
1answer
13 views

How can I remotly monitor a Node process making sure it's running using outbound HTTP heartbeats vs inbound?

I would like the process itself to send heartbeats vs receiving them from services like Amazon Route 53 health checks. I would like to avoid running a web server on that process.
1
vote
0answers
19 views

How to configure Node.js ExpressJs for HTTPS?

I am attempting to get an nginx,NodeJs,Express route working correctly on a server instance (Digital Ocean). So far, this is the situation: What currently works: http://api.xxxxxx.com - switches to ...
0
votes
1answer
32 views

nginx set different document root for a proxypass

I'm just trying to run a nodejs app I made on a proxypass domain, and have it work exactly as it did on my desktop. However, for some reason, even though I defined a seperate document root for this ...
0
votes
0answers
25 views

Pm2 cannot open it's own PID file on ubuntu 18.04

I was recently trying to run a nodejs app I created using pm2 and this tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-18-04 ...
0
votes
1answer
28 views

How to keep an Amazon ElastiCahe Memcached/Redis before a RDS MySQL database and use ElastiCache to cache the content?

I created one cluster in ElastiCache and connected that cluster with EC2 instance. And I want to include ElastiCache in front of my RDS(MySQL database). I have two questions which are as below. 1)Is ...
1
vote
2answers
72 views

How to manage static content for high-loaded website via nginx?

My understanding is that nginx is well-suited for serving static content. But i can't find any information with regard to how well it's for serving very big amount of static content. Let's say i use ...
0
votes
0answers
8 views

Nginx - Forward a request to another port for a specific url in 443 server block

I want the requests for "https://www.example.com/api/***" to go to port 8000. The nodejs server is running on 8000 port and I want to send these api requests to that server. My current config file is ...
0
votes
0answers
12 views

Setting up nginx to run more then one nodejs app on https and redirect every http request to https

Nginx is redirecting the http to https successfully. Both apps are up and running on port 3000 and 3001. But only the app on port 3000 is accessible in browser by visting example.com. Whenever I try ...
0
votes
0answers
37 views

nginx give me error 500, without any error from nodejs

So, I'm using nginx nodejs stack for mailgun receive inbound to forward message, and the message passed to my api. But it gives error 500 to mailgun log from nginx, I can't send response.status(...
0
votes
1answer
129 views

My Web application gives CORS error after adding HTTPS using Let's Encrypt

This is my application : https://cfslpro.com/student_portal/ Front end is done by AngularJS and back end is done by Node.JS. Hosted in Apache server. ( Digital ocean Linux 16.04 ) You can try login , ...
0
votes
0answers
19 views

Node.JS rest API is not accessible from outside when I added SSL to my Linux server

This is a testing application i'm doing. https://cfslpro.com/student_portal/ username : chanu password : 123456 Before adding HTTPS , this login and everything worked. But now nothing is working. ...
-1
votes
1answer
43 views

Unable to install nginx on Amazon Lightsail NodeJs machine [closed]

I am getting the following error while trying to install nginx. I have hosted a reactjs app on the machine and intend to setup reverse proxy with nginx Reading package lists... Done Building ...
0
votes
2answers
72 views

Nginx PM2 NodeJS reverse-proxy with SSL gives HTTP 504

Once upon a good time, I had a good config for three NodeJs, socket.io API running on the same Ubuntu 16.4 LTS VPS server with PM2 for process managing and Nginx for reverse proxy to three different ...
1
vote
0answers
50 views

Apache SSL reverse proxy to a node server using websockets

Browsing to a root domain like https://sub.example.com and navigating through pages such as https://sub.example.com/page1 works. But only if I start my initial connection at the root. If I refresh ...
0
votes
0answers
30 views

Slow connections affect how Nodejs app save data in Mongodb database?

I developed a Nodejs app for my organization. This app consists in three different forms to capture data based on three different topics. We are using a local mongodb database to store data. This ...
0
votes
1answer
60 views

How to serve wordpress (LAMP) and Angular (Node/Express) app on same server/domain

I'm currently running a web server with Ubuntu 16.04, serving up a Wordpress site, using LAMP stack and LetsEncrypt SSL to encrypt the website. I'd like to be able to run an Angular app with the MEAN ...
1
vote
0answers
10 views

nginx 502 bad gateway with nodejs [duplicate]

i am an student who is working on a nodejs + nginx project taht i didn't start, so im not sure what is going on.... when i try accessing to my website, i am recibing a 502 Bad Gateway nginx/1.12.2 ...
0
votes
0answers
14 views

Apache2 php config with proxypass for nodejs

I have and apache2 config vhost like this below using https: DocumentRoot as u can see is in "/var/www/html/wp" , which contain php api. My nodejs api runs on http://localhost:9000/ which is proxied ...
1
vote
1answer
67 views

Reverse proxy nodejs on nginx with prerender enabled

I would like to run NodeJS with express web server in a combination of prerender, inside nginx. What I have so far is a stable configuration for reverse proxy, which works fine - there is also a ...
0
votes
0answers
51 views

client_body_buffer_size app engine

i was wondering if somebody could help me out. I am running a node server on a google app engine (flex) and i see the following warning in the log files: textPayload: "[warn] 32#32: *2096 a client ...
0
votes
0answers
93 views

Elastic beanstalk nginx gateway timeout nodejs

Hiii, My elastic beanstalk recently started to report that "100%" of requests are failing due to some 5xx error. This error somehow goes away when I restart my app servers. I found out that it is 504 ...
1
vote
2answers
126 views

AWS - Four load balanced t3.micro vs one t3.medium for a NodeJS API

I'm trying to decide which of the two setups would be get me more price/performance value with the consideration that I will run a NodeJS API in cluster mode: All prices are current rates for ...
1
vote
1answer
53 views

Can you send console commands to a node-based systemd service?

I have a simple node.js script that accepts console commands using readline. I've set it up to run as a systemd service (on Debian 9): [Unit] Description=Web Game Server [Service] ExecStart=/usr/bin/...
0
votes
1answer
24 views

ubuntu 14.04 node porridge

I have two versions of nodejs on my machine. I had only v8.6.0. I ran: sudo apt-add-repository "deb https://deb.nodesource.com/node_8.x $(lsb_release -sc) main" sudo apt-get update sudo apt-get ...
0
votes
1answer
18 views

how to point parts of a single url to 2 different servers using nginx

I have pointed a location /tanya to an address http://52.221.238.24/tanya;, I also want /tanya/t/ to point to the same IP. However, I need to point /tanya/dynamically_generated to point to another IP ...
-1
votes
0answers
47 views

Redirects to HTTPS Nginx in AWS Elastic Beanstalk with websocket suppport

I have an Elastic Beanstalk environment with load balancer fully working with https and websocket. Now I need to redirect http traffic to https. This is my nginx config file: files: "/etc/nginx/...
0
votes
0answers
21 views

Node.js http server Crashing with some unknown IP address.

I am running a Node.js http server and suddenly the following message message is displayed and the server crashes: Error: connect ETIMEDOUT 139.99.8.126:80 at Object.exports._errnoException (util....
0
votes
1answer
41 views

Nodejs/Apache config for proxy pass

I want to use Nodejs/Apache proxy pass to serve my APIs, but after add below apache(httpd) config, it seems that config not working. OS: CentOS 6 /etc/httpd/conf/httpd.conf: ... <VirtualHost *:...
0
votes
1answer
157 views

Run HTTP server on port 9090 (Node.js) and use Cloudflare

I wonder how I can add to Cloudflare subdomain to a specific port that can work in the browser. I open a socket using socket.io on port 9090 and have an index.html file server.listen(9090); if I ...
0
votes
1answer
49 views

Trouble configuring https with nginx on centos

I've got a node.js project running locally with http2 and https. Everything is running great, I generated a self signed cert and running the app serves everything up correctly. So now i'm trying to ...
0
votes
1answer
150 views

Nginx proxy configuration error: [crit] pread()

I'm trying to put my node.js project into my vps. I've watched watch a video which explain how to do that. The problem appened when in create a upstream. Indeed, when I executed the sudo nginx -t to ...
1
vote
1answer
138 views

How did Alibaba find my server and ping my node instence that I just made?

So I just created a new droplet on DigitalOcean and did a http-server in the root directory. 5 minutes later I see this in the logs: GET http://47.99.121.32:39169/Ip/Up?Ip=[my server ip]&Port=...
1
vote
1answer
799 views

Is my docker node application using all available CPUs?

I've got a node app built using a standard node-alpine docker image deployed to Azure App Service. The App Service Plan is set to use 2-core VMs (instance type S2). A single node process will only use ...
0
votes
1answer
60 views

Elastic Beanstalk: Update AMI + node version at the same time

We have a system that's been sitting on an old version of node for a long time and wanted to update to a newer version. Updating via the web dashboard doesn't allow you to change the node instance ...
0
votes
1answer
30 views

How to find out how node web server is started on our server?

So we have a bunch of old (like 2 years) Ubuntu 14.04 servers running production application, which has an API endpoint in Node. But we have no idea how to start/stop/restart node on it.. it just ...
0
votes
1answer
29 views

Modify running GAE flex node app

We wanted to make a quick change to a running GAE application to enable logging of queries to trace a bug. SSH'ing into a running instance it can be hard to find where the app code is stored due to ...
0
votes
0answers
40 views

Serve content from a port like a Apache2 directory

I have a Node.js/Express website running by port 3000. I would like to serve it as a land page of my server by the root (/) not using the port. I have a few limitations as I have also in the same ...
1
vote
0answers
220 views

Nginx, PM2, Node - No 'Access-Control-Allow- Origin' header

I have developed NodeJS server ran with express. I use PM2 to manage the application and then nginx to proxy requests to the application. My Express application has CORS, CSP etc set up. But, the ...
0
votes
1answer
38 views

issues configuring nginx with node.js app

Trying to get nginx to proxy my node.js app and use a domain with it. I'm going to have many domains mapped to the server so i'm using separate .conf files for each server block. The issue i'm having ...
1
vote
0answers
35 views

Why same request has different response times?

I have an API (built with nodejs) and deployed on a kubernetes cluster using a docker image. For default route I simply return a Hello World QA! message. I am testing response times of this GET ...
0
votes
0answers
17 views

aws upload node.js server code always get degraded status

I am using aws Elastic Beanstalk. I only use the Express module in node.js. I uploaded the empty express project. But I don't know why I got the status is Degraded. EB Status Image Causes Image But ...
0
votes
1answer
202 views

Nginx Angular App can't access REST API on localhost in production

I've searched around quite a bit and still haven't found a solution that works for my issue... We have a NodeJS application that is an Express app exposing a REST API on localhost:3000. We also have ...
0
votes
1answer
54 views

nginx configuration for subdomain and proxy server

I was trying a lot of other post solutions here and no one can help me to solve my problem. I have a simple nginx configuration with https and a node.js app with the main path / and for a subdomain ...
0
votes
0answers
6 views

How to start and stop individual node instances on linux hosting server? [duplicate]

On my linux shared hosting server, I have been hosting a node.js site like this: node server.js & which I could access at: http://nnnnnnnnnnn.com:49998 and when I want to stop it I use the ...
0
votes
0answers
21 views

How to automate mapping of Node.JS services

We're running at any given time 10-20 Node.JS services controlled by pm2. It is getting hard to keep track of the configurations. It would be great if we could automate a service map - and show ...
0
votes
2answers
167 views

CNAME to CloudFront: Read actual browser URL server-side

I'm trying to read the actual browser URL server-side (Node.js), but is getting the EC2 instance url. I have a setup consisting of a Node.js application running on EC2 with a Cloudfront distribution. ...
0
votes
0answers
33 views

Why do I need both an iptables input and output chain rule for receiving requests?

I've been trying to get a debian VPS digital ocean droplet running a node server to respond to external WAN requests without much success. The node server is pretty simple listening to port 45000 for ...
0
votes
0answers
26 views

WebRTC application does not work on certain networks

We have a WebRTC application built in Unity with utilizes the plugin from because-why-not.com and also his node.js signalling server using WSS secure sockets. We are also using STUN and TURN servers ...
0
votes
0answers
641 views

Cookie Does Not Contain The secure and HTTPOnly Attribute

While running a Qualys Vulnerability Scan on a website which is being developed I got the following vulnerability: Cookie Does Not Contain The "HTTPOnly" Attribute Cookie Does Not Contain The "...