Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
123 views

Should I compile Node.js from source on an Amazon Lightsail smallest instance?

I'm using the cheapest Amazon Lightsail instance to set up an Nginx + Node.js server. I have compiled Nginx successfully already, however it's taking too long to compile Node.js. Is this is even a ...
gregn3's user avatar
  • 101
0 votes
1 answer
4k views

nginx does not set x-forwarded-for header

I want to get the IP adress of the client that visits my page. My app is running behind a proxy so i set this configuration to my nginx file: proxy_set_header X-Forwarded-For $remote_addr; Now i try ...
Ilijanovic's user avatar
1 vote
1 answer
4k views

NodeJS and Redis Cluster - Error: connect EMFILE

I'm banging my head against the wall now for 3 days and counting. I hope you can tell me what am I doing wrong. I have a Redis cluster with 3 masters and 3 slaves. A NodeJS application wishes to use ...
Bert's user avatar
  • 1,106
2 votes
1 answer
994 views

AWS EFS - file delete and recreate not detected programmatically for 25 to 30 seconds

I am observing a very large delay in EFS detecting that a file has been re-created i.e. deleted and then created again. In this simple test example, I have a single file that gets deleted and ...
Ben's user avatar
  • 141
3 votes
3 answers
1k views

How to set Amazon Route53 for multiple distinct domains on the same IP address?

I have two different domain names with completely different websites. This is how my nginx configuration looks like: server { listen 80; server_name domainnameone.com; location / { ...
Dong's user avatar
  • 135
0 votes
1 answer
670 views

Google App Engine Fetch Slow Speeds

I'm running a NodeJS Google App Engine service that retrieves a large file and sends it to a Virtual Private Server hosted on Digital Ocean or AWS. The file is about 5MB and takes up to a minute to ...
Josh's user avatar
  • 109
0 votes
1 answer
444 views

Is it possible to forward a port for one app only?

I have a Ubuntu server (18.04) which hosts some websites on Apache2, and also has a node app running. I want the node app to use SSL, but as it's not running as root it doesn't have permission to ...
DisgruntledGoat's user avatar
2 votes
1 answer
2k views

App Engine Flexible Deployment Issue: 403 Resource Error

we have been trying to deploy our nodejs code to app engine flexible but unable to as it shows a Resource Error. We have GSuite Organization account and are using it for deployments. This is the error:...
Shaurya Chauhan's user avatar
1 vote
1 answer
459 views

Flush DNS cache in Google App Engine

We recently had a Google App Engine application fail to properly fail over during scheduled maintenance of our database server (hosted in Aiven). During scheduled maintenance, the DB server will fail ...
ChrisJ's user avatar
  • 295
0 votes
1 answer
256 views

How to serve / from a static file, but the rest of the root directory from a proxy (NodeJS)?

I've tried the following: # this *should* serve the root from a static index.html file location = / { try_files $uri $uri.html $uri/ /index.html; } # resources are served ...
fadedbee's user avatar
  • 2,168
0 votes
1 answer
424 views

What's so good about having a job queue?

I am currently building an API that sends transactional emails to users. I do this with a job queue, bull in particular. During development, something crossed my mind; where are these jobs actually ...
Jonathan van de Groep's user avatar
1 vote
1 answer
674 views

How to prevent node js from serving .git folders and all the files under .git

I know that using .htaccess file can restrict files to be served under .git but how do i acheive the same if i'm using node.js server. I use forever to start/stop the servers.
Nilamber Singh's user avatar
5 votes
3 answers
33k views

How to configure Systemd service unit to start Node app with "npm start" instead of "app.js"

Environment: CentOS 8, Node.js, Digital Ocean Droplet My Systemd setup starts a node app with the following command. It works as expected. $ sudo systemctl start myapp File 1: /etc/systemd/system/...
myNewAccount's user avatar
-1 votes
1 answer
1k views

Cpanel NodeJS app displaying source code [closed]

I have set up nodeJS app on cpanel using cpanel nodeJS selector. Apps root directory is /home/userName/public_html/server. The app is working fine. Problem is if I send get request to example.com/...
Imtiaz Chowdhury's user avatar
0 votes
1 answer
3k views

Apache reverse proxy to nodejs server on CentOS 7 (WHM)

I'm trying to setup my site on the server. I've uploaded it and it's currently running on the server but the problem comes when I try to setup a reverse proxy on the domain so that I can access the ...
James's user avatar
  • 1
0 votes
1 answer
641 views

Configure Apache Web Server (shared hosting) to provide simultaneous Web and Websocket Access

I'm trying since some days to find a way to configure simultaneous websocket and web server connections with one same Apache Web Server I have on a shared hosting basis. Now, before giving that up and ...
DevelJoe's user avatar
  • 259
0 votes
1 answer
599 views

secure reverse proxy apache server still getting requests to other domains in access log

I've been trying to setup apache (port 80) as a reverse proxy to a nodejs server (port 3000) and I made the mistake of launching my apache server with ProxyRequests On. I discovered this error after ...
Dan's user avatar
  • 3
0 votes
1 answer
160 views

Apache seems to redirect to domain name ever when not running

I'll preface this by saying I don't have a lot of experience with Apache. But currently I am running a Node process that's listening on port 8080. However, when I access that port via 'ipaddress:8080'...
Anthony's user avatar
  • 211
-2 votes
1 answer
409 views

Options for a web application to send emails

I have a VPS server running Ubuntu OS. A developer is creating a NODEJS website and suggests to use a third party service to send emails. Such as Sendgrid. I'm sure years back there were other ways ...
Orange Juice Jones's user avatar
1 vote
1 answer
2k views

Cannot reach Node.js application over HTTPS

I have an node.js application that is running on port 3000. Infront of it i run an nginx reverse proxy. It works fine for port 80. I have tried to install an certificate with certbot. Now i have the ...
Ilijanovic's user avatar
1 vote
1 answer
3k views

NPM issue, where to start

Hopefully this is the right forum to post. Coming stack overflow but I think this is more you guys' expertise. I have a centos 6.10 box. It had Node.js and npm running ok. I don't know which versions ...
Aaron's user avatar
  • 113
6 votes
2 answers
71k views

how to fix apache2 "proxy_http:error" AH01102: error reading status line from remote server localhost:4382

how to fix apache2 "proxy_http:error" AH01102: error reading status line from remote server localhost:4382. I have an apache2 webserver which is being used to serve few nodejs applications in the ...
devops-admin-jacky's user avatar
0 votes
0 answers
376 views

nginx - dns resolution in njs

I need to solve a simple DNS query using njs in nginx. I've searched but it seems that there isn't a 'native' function for doing this. So I'm trying to use dns-lookup module for node.js I've ...
Fabio's user avatar
  • 55
2 votes
4 answers
5k views

How to remove the trailing slashes from a URL with nginx

I'm trying to remove trailing slashes from urls. I searched a lot and tried some solutions but they didn't work form me. I tried this one rewrite ^/(.*)/$ /$1 permanent; but it leaves one slash ...
Igor Oleniuk's user avatar
1 vote
1 answer
618 views

Is this configuration for email is secure?

I am using nodemailer package with node.js to sending mails, and I am not sure about security. The host I've received is working only with this configuration (also with port 587): const transporter ...
Hunja's user avatar
  • 13
5 votes
3 answers
6k views

NodeJS React Systemd Service not working

I am trying to set up a systemd service for a simple react application. This application is hosted in /home/myuser/test. Both npm and node are in the PATH and hard linked to /usr/bin. All the files ...
Nissy A.W.'s user avatar
1 vote
1 answer
395 views

gcloud deploy not making dist folder

Admittedly, I'm a novice at GCloud. I "inherited" a project abandoned by the previous developer. I'm trying to deploy a node app on the app engine. The app won't start because it can't find the ...
Mike Hogan's user avatar
0 votes
1 answer
681 views

How to stop an application started with NPM's forever start?

I started a NodeJS application with forever start app.js. The code had a bug and the server is not running and not responding. When I launch it again with npm start, I see that the port is already in ...
ginjaemocoes's user avatar
0 votes
0 answers
464 views

NodeJS libstdc error on CentOS 6.10 (EasyApache,cPanel)

I have installed NodeJS 8.9.3 and that was running perfectly. but after that i have started a project and that needs NodeJS Version > 10.0 so i updated my NodeJS 8.9.3 to currently stable version via ...
Shubham Panchal's user avatar
0 votes
1 answer
4k views

How to install Node.js 12 on CentOS 8?

I tried the following this post which states Application Streams are typically named for the version of the software that is included, e.g. nodejs:8 or nodejs:10 [...] ... but as you can see below: ...
leonheess's user avatar
  • 144
0 votes
0 answers
49 views

My server does not respond

I would like to have an address for my website like this : meteo.xyz.com I own the domain xyz.com I redirected the traffic from my domain to the digital ocean dns in my domain name provider : meteo ...
C Taque's user avatar
  • 123
0 votes
1 answer
85 views

Scheduled Copy Bigquery View/Query to Google Sheet

I have a BigQuery View/Query that every morning I need to run and copy the result to a Google Sheet. I am using Javascript, and plan to use the node.js BigQuery client library and the Google Sheets ...
Max888's user avatar
  • 111
0 votes
1 answer
57 views

How to load fabric client certs in google cloud function?

I'm trying to create a cloud function which includes certificate file in nodejs. Below is the code which I'm trying to execute: exports.invoke = async function(req, res) { const walletPath = ...
Harry's user avatar
  • 1
0 votes
1 answer
3k views

Nginx Config For React and Node App Proxying to Wrong Path

I've setup a server with an Nginx config for a React frontend and Node backend. The Node app serves as an API for the react app. The node routes for /api/... are getting passed to the following path: ...
jFasaJr's user avatar
  • 121
3 votes
1 answer
45k views

what can cause Nginx "Connection reset by peer" when upstream is healthy?

On an AWS Beanstalk deployment (single server) the Nginx server talking to the NodeJS/Express server on the same host occasionally complains about lost connections to upstream. 2020/03/23 10:52:43 [...
Udo G's user avatar
  • 453
2 votes
0 answers
153 views

How do I create a web dev environment using a linux command line without a GUI/OS? [duplicate]

Sorry if this is a stupid question or it doesn't make sense. Basically what I'm trying to do is put my local web development project (using Nodejs/Express and MongoDB) onto a server that only ...
Emily's user avatar
  • 121
0 votes
0 answers
73 views

Nginx non-'base' location into base proxy_pass, location not being inherited in frontend

I can't figure out how to word the question properly, but I'm pretty sure someone has encountered this problem already and I just can't figure out what keywords I should be looking for. So here's the ...
ZekiraDrake's user avatar
0 votes
1 answer
6k views

How to update yum repositories to fetch newer versions of nodejs and related ones in CentOS 7?

I'd like to update certain packages. The latest versions are not presented. $ sudo yum list nodejs Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos1.hti.pl * ...
Kirby's user avatar
  • 1,159
0 votes
1 answer
2k views

Docker race condition leading to curl error "transfer closed with 1 bytes remaining to read"

It is hard to fully describe our problem. However, I will try my best to provide full information. I spent many hours and still stuck. Hope that anyone here can help me. Currently, our container ...
Sang's user avatar
  • 101
0 votes
1 answer
129 views

Nginx with node app with existing application

I am completely new to nginx and I am trying to set something up so that it is possible to navigate from an existing application on a remote server to a node application. The node app will be on the ...
Metaman's user avatar
  • 103
1 vote
1 answer
2k views

Cloudfront disrupting authentication with JSON Web Token

Short version: my jwt token is not surviving a refresh when pointing to domain behind Cloudfront. Not sure if this is best posted here or on stackoverflow, but since I think I've isolated the problem ...
djibouti33's user avatar
1 vote
0 answers
3k views

Axios in a Node.js container on Kubernetes is returning “ECONNREFUSED 127.0.0.1:30561”?

Full error message: connect ECONNREFUSED 127.0.0.1:30561 at TCPConnectWrap.afterConnect The axios request is running in a Node.js environment (Next.js), which is where the error occurs, strangely the ...
thatguyjono's user avatar
2 votes
3 answers
2k views

Apache 2 handling requests very slow after Restart

We have a GPS device socket handling server using NodeJS which sends the received HTTPS request to Apache installed server and saving the data into MySQL Database. When we restart NodeJS or Apache ...
jAddict's user avatar
  • 23
0 votes
1 answer
2k views

Node JS on Windows : Becomes slow when OS update is processing

I currently have a 4-core windows server. On this server, I installed a nodejs Server (API rest). It works perfectly without latency. However when I start a windows update for the server, nodejs ...
Oytoch's user avatar
  • 1
0 votes
1 answer
2k views

Apache reverse proxy to nodejs server on CentOS 7.7 (WHM)

I'm trying to setup an apache reverse proxy when accessing mysite.com to 127.0.0.1:3001, by setting up a virtual host in the WHM > Apache Configuration > Include Editor > Post VirtualHost Include (all ...
vstruhar's user avatar
  • 101
1 vote
1 answer
705 views

SSL on a Parse Server

I have a production mobile app running on Parse Server, hosted on DigitalOcean. This is my setup: Droplet no1: Parse Server and Dashboard Droplet no2: MongoDB And this is how the client connects to ...
Sotiris Kaniras's user avatar
0 votes
0 answers
293 views

IPv6 enabled but cannot ping or make HTTP requests

After being forced to use IPv6 for connections because of a CGN my ISP uses, I tried to set up a proof-of-concept node.js server to see if it was working. To note, this is my first time ever working ...
Catalin Termure's user avatar
1 vote
2 answers
2k views

How can I proxy_pass all addresses after a location / with nginx?

I'm running a node.js application called serve that shows the files and folders from a specific path of my computer on a webpage: This application works fine by itself and I see no error messages ...
Rafael M.'s user avatar
  • 131
0 votes
1 answer
11k views

How to solve python POST response 405 [closed]

How to solve python POST response 405? import requests import json from requests.auth import HTTPBasicAuth myHeaders = { 'accept': 'application/json', 'content-type': 'application/json', 'X-Killbill-...
Sukhen Santra's user avatar
1 vote
1 answer
2k views

How do I send secure cookies using node and a ProxyPass/ProxyPassReverse (Httpd/Amazon linux)

I am still pretty new but I am using an Amazon linux image and httpd to encrypt and decrypt SSL requests. Then I Proxy those messages to and from a NodeJS app running on port 3001. To do this I have ...
Jackie's user avatar
  • 201

1
3 4
5
6 7
21