All Questions
308
questions
0
votes
1
answer
287
views
Is it possible to use HTTP/3 with NGINX-Node.js combination already?
NGINX supports HTTP/3 since 1.25.0. Node.js currently does not support HTTP/3 or QUIC out-of-the-box but it seems there are some C++ addons implementations, like FAILS'.
HTTP/3 (more specifically, ...
0
votes
1
answer
238
views
How to setup Nginx and Varnish reverse proxy for Node.js?
My website on the Astro framework (Node.js SSR adapter) is deployed on 1 shared-cpu-1x@256MB fly.io instance in the Amsterdam region, which automatically handling gzip, TSL termination.
Initial setup ...
0
votes
0
answers
87
views
Exposing ports on VPS
I'm running some services inside Docker and been having some issues with it: I have a NodeJS app (TLS stream communication) running on a custom port (let's say 2321). I exposed the port from my ...
-1
votes
1
answer
957
views
Nginx yielding 499 status due to upstream connection reset
Have read other posts; they do not yield much light.
Situation:
Kubernetes cluster with ingress points to
Several nginx containers that proxy-pass to a
Node application on a specific URI via location ...
0
votes
0
answers
122
views
access.log of Nginx filling up space (Ubuntu 22 Server)
Recently I have deployed my website using node.js server and using Nginx as reverse proxy, also nginx handles SSL, and forwards the HTTPS to HTTP server of node.js running at specific port. I am using ...
0
votes
0
answers
102
views
Mixed content error nginx+docker container
I have an EC2 with Nginx setup & there are a few containers running inside. There's a Node JS gateway which is serving some of the requests in a webpage hosting in this Nginx server. Nginx is not ...
0
votes
0
answers
75
views
NGINX waiting 60 seconds before processing request for NodeJS application
I have a NodeJS (ExpressJS) application containerized on Docker that is exposed through an NGINX reverse proxy also containerized on Docker. Sometimes, a request sent to NGINX takes 60 seconds before ...
0
votes
1
answer
472
views
Node.js backend with simple frontend on same server
i have /var/www/html/ with index.html
i have /var/www/ai_backend with server.js
server.js is running on port 5000. so if i curl from this machine http://localhost:5000 i get response.
but if i send ...
0
votes
0
answers
63
views
How create automatic deployement and allow my customer dynamic create and access my app on subdomains?
I have created an nodejs app and i want my customer to be able to dynamic create an instance of my app with automatic deployement on subdomains for example ‘customer1.mydomain.com’.
I know i can ...
0
votes
1
answer
500
views
my nginx server was working perfectly fine and now shows a 502 error
I'm deploying my project,
I had no problem until i decided to buy a domain for my digital ocean droplet
i added the records from my namecheap domain to my droplet
i was working on it then suddenly ...
1
vote
1
answer
226
views
NGINX Hosting multiple servers in same domain
I have a website being served by Nginx and I'm trying to do something that I don't know if it's possible the way I'm trying to do but the case is:
I have Application A and B made with React / Node.
...
1
vote
1
answer
1k
views
Nginx + Socket.io + Nodejs: How to configure socket.io on custom path
Ubuntu 22.04
Nginx: 1.23.2
Nodejs: 12.22.9
Socket.io: 2.0.3
I had a basic Node.js chat room built in Apache2, but I migrated everything over to Ngnix and I'm having problems trying to get the chat ...
1
vote
1
answer
804
views
Node on Nginx - proxy_request_buffering off doesn't work with https? Super slow https image uploads
I have a node server running on nginx as a reverse proxy, which is supposed to handle image uploads. Its ssl cert and domain are configured through cloudflare.
Aside from setting the proxy_pass to ...
0
votes
0
answers
714
views
Nginx: Websocket on port 80 is not working
I have a simple NodeJs Websocket application running, the code for it is
// Importing the required modules
const WebSocketServer = require('ws');
// Creating a new websocket server
const wss = new ...
0
votes
1
answer
2k
views
Nginx + Socket.io websocket closed before establishing connection issue
Hi i am running an express server with a socket.io server attached to it
const { Server } = require("socket.io");
var server = http.createServer(app);
/**
* Adding Socket io implementation
...
0
votes
1
answer
2k
views
Configure two application in same server in Nginx on two ports
I have two different applications.
Survey application built with express framework
Django application using rest api and react
I would like to achieve:
vardhan.com/survey, vardhan.com/feedback, etc ...
0
votes
0
answers
2k
views
connect() failed (111: Connection refused) while connecting to upstream Nginx
I'm working on the deployment of the app with the backend and frontend using Nginx as a proxy. However I'm facing the 502 Bad Gateway, the error says
[error]: connect() failed (111: Connection ...
0
votes
0
answers
479
views
Nginx configuration with NodeJS application on Ubuntu 20.04
I've been attempting to configure a backend NodeJS server (ExpressJS) to use with Nginx, but there have been some difficulties. I am currently running a DigitalOcean droplet with Ubuntu 20.04 ...
0
votes
1
answer
4k
views
Configure nginx to serve query string parameter
We have one NextJs site, with next export we get one out folder which we want to serve from Nginx.
In out/login there is one '[[...parameter]].html'.
When we deploy site using pm2 it is working if we ...
0
votes
0
answers
709
views
How to pass https requests to http in nginx
I have a self signed certificate, I deployed my front end react app on nginx which is served by using HTTPS but front end is making call to back-end spring-boot app over HTTP and when i check inspect ...
2
votes
1
answer
3k
views
How to serve 2 react apps on nginx with same ip and port
I have two applications one is public and another one is admin, I want to serve these two apps on same port but it is not working, below is my configuration file:
build folder for both apps is saved ...
0
votes
1
answer
569
views
Error connection refused MERN APP on EC2
I have MERN app on ec2 i am getting an error ERR connection refused when connecting localhost:8080/api/auth/sign with node api. Cannot make post calls.
What should I do?
0
votes
1
answer
862
views
Sharing a Let's Encrypt certificate with a node websocket connection on the same domain? Possible? Advisable?
Is it possible / advisable to register and renew a Let's Encrypt certificate through Nginx for https, and share that same certificate on a websocket connection (wss://) on the same domain? The ...
0
votes
0
answers
3k
views
react.js app with nginx gives 404 or refresh
I have a backend node.js application(system directory) and a frontend react application(admin directory). I use nginx as the webserver.
I can load my frontend well. But when I refresh, it gives 404. I ...
0
votes
0
answers
1k
views
Nginx 413 - Client intended to send too large body - Node app
I am runing a node app on nginx under Ubuntu and I am having problems uploading a 200M json file. On my local I use nginx on a Mac and I am not having this limit issue.
I have set the nginx.conf http ...
0
votes
1
answer
6k
views
NGINX reverse proxy doesn't work with swagger-ui-express
I am using NGINX to proxy_pass all requests with prefix /auth/ to a nodejs api server at localhost:3000.
I have this single config file /etc/nginx/sites-enabled/default3.conf:
server {
...
0
votes
1
answer
3k
views
Blocked loading mixed active content
I am using react as my font end, and nodejs as backend which is running on localhost:3016 and I used nginx as reverse proxy and load balancer;
this my nginx conf file for the site
upstream ...
0
votes
1
answer
351
views
Nginx rewrite with proxypass
I have an Nginx running in the front of a node js server (next.js). I'm trying to write my Nginx config in order to achieve this behavior,
I want to add the hostname as the first part in the path ...
0
votes
1
answer
1k
views
Nginx return 500 Internal Server Error
Last night I was trying to upload photo on my website and I get error
I trying to do console.log but they didn`t show anything.After some re-search I notice that disk usage of my server is full so I ...
0
votes
0
answers
1k
views
Nginx + django +nodejs : Uncaught SyntaxError: Unexpected token '<'
This is first time using nginx and nodejs. I have two apps one is built using django and other is built using nodejs (expressjs +openvidu). I am trying to configure nginx, django app works fine, I am ...
0
votes
1
answer
200
views
Nginx: unable to proxy some paths to Node.js server (between dwo docker containers)
So my current setup is the following: I am using docker (rootless install) and want to use Cryptpad (which uses Node.js) with Nginx as a reverse Proxy (disclaimer: I never worked with Nginx before).
...
0
votes
1
answer
2k
views
Using Reverse Proxy Nginx in a docker container
So trying to setting Nginx as a reverse proxy using docker - I have three node js containers (one frontend and two backend services) the frontend service calls the two backend services. So I want ...
0
votes
1
answer
832
views
Nginx reverse proxy to a node express fullstack app not working
I have a fullstack node express which serve static files and the api running on port 5000.
my nginx config is :
server {
listen 80 default_server;
listen [::]:80 default_server;
...
0
votes
1
answer
320
views
Serving multiple nodejs sites with nginx which ports should I be starting apps on
I have multiple nodejs apps from different domains that I am serving from the same server with nginx. I am currently starting each app on a different port say 5000, 5001, 5002 ect. Then using nginx ...
-1
votes
1
answer
1k
views
Nginx reverse proxy not working
I know this is a very common problem, but I can't seem to find the solution to it, and I'm new to Node JS and Nginx.
I'm trying to run my Node JS app on port 80 of my site at example.com using a nginx ...
0
votes
0
answers
468
views
Nginx - NodeJS not able to reach subdomains
I have a smalle project that I created an my Raspberry Pi. On the Pi I have a added Nginx and NodeJs in order to create a small Express server.
My Express server has a sub path called /api/ip where I ...
0
votes
1
answer
83
views
Running node.js app on Nginx
I have a node.js app which running nginx, which is working smoothly but the problem is that, when a user enters with IP address and port (ex:5.188.56.20:8010), he can observe the services that are ...
0
votes
1
answer
748
views
Nginx fails to proxy to Node
I have a running Node app that is live and works fine on http and https.
I setup Nginx and it is also running fine, tested with an sshtunnel, and it is getting a correct response from static files (...
3
votes
1
answer
2k
views
Should I be concerned about attackers spraying for vulnerabilities on our webserver?
I'm running a webserver with monitoring software (Sentry.io) and I can see (failed) hits to the following endpoints:
GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
GET /console/
POST /api/...
1
vote
1
answer
12k
views
Nginx what is the right configuration for Socket.io?
If I have a node express server running on port 5003
import express from 'express'
import { createServer } from 'http'
import { Server } from 'socket.io'
const app = express()
const prod = process....
0
votes
1
answer
4k
views
Nginx server blocks and socket.io - CORS
I have been running apps with this server blocks structure for sometime and it has never given me any problems.
geo $authentication {
default "Authentication required";
`Some ip number` &...
0
votes
0
answers
366
views
Setting up Express.js api in production enviroment
I have an Ubuntu server, and I am trying to deploy an express.js/node based Rest API. All the documents I have read say use Nginx as a reverse proxy to get it working so I have attempted that a dozen ...
0
votes
1
answer
2k
views
Deploying nodejs app using npx http-server and Nginx
I am deploying a nodejs app I have tried two alternatives but I can't understand what's the better approach in terms of performance.
The first approach I tried is to lunch using pm2 npm start (which ...
1
vote
1
answer
494
views
WSS Connectivity issue on production
I am using Angular8 as frontend and Nodejs as backend
I have Configured WSS on production ,but connection with client not working properly, In one page connection is working but in another page ...
0
votes
0
answers
1k
views
SSL Error: How to use Nginx with Node.js App using Angular and websocket
I am running into an SSL error when setting up Nginx as a reverse proxy for a Node.js app. This app uses Angular to serve dynamic content and for WebSocket, we use ws. WS working properly but when ...
1
vote
1
answer
865
views
Nginx + Express app in subdirectory/location, returning 404
I want to make an express app accessible through http://website.com/app and use nginx as a reverse proxy as well as to serve static files.
This is my nginx configuration:
upstream app {
server ...
0
votes
0
answers
76
views
Why might SELinux issue a Permission Denied error when accessing an upstream Node.js server's default routes, but not static files like image files? [duplicate]
Environment: Nginx reverse proxy serving static resources and using proxy_pass to serve resources from 2 separate Node.js upstream server instances.
Simplified example nginx.conf:
server {
...
1
vote
2
answers
17k
views
What would cause "Connection Refused" with simplest nginx centos setup on GCE?
Update
I followed the same steps as below except on a generic VPS provided ( Not google ) and it worked as anticipated including unlisted steps such as enabling HTTPS with Certbot... So my presumption ...
0
votes
1
answer
3k
views
curl nginx as proxy server with "-i" works but with "-I" 404
i'm trying to make nginx as proxy_server to nodejs app on port 3000 for testing purpose with compression,
when doing this:
curl -I -H 'Accept-Encoding: gzip, deflate' http://localhost/json
i go this:
...
1
vote
3
answers
1k
views
NGINX frontend HTTPS server rejects requests to local backend http express server
I have an application that's split into two servers: one is a React application running on port 8080 and the other is an Express server running on 3001. The machine running this application has to run ...