Questions tagged [nginx-config]
2020 questions
3
votes
1 answer
How to use nonce or sha with connect-src(csp)?
Is it possible to use nonce with an API request so that connect-src in CSP will detect that it is not a malicious address?
Until now I have seen that nonce can only be used in script-src or style-src, not in connect-src
So far I have only been able…

jeremo
- 31
- 2
3
votes
0 answers
Nginx Cors with POST
I'm trying to send a post request from a client-side javascript (fetch) to my server which uses Nginx as the web server. The client-side javascript runs on a different domain.
I'm having trouble configuring Nginx to reply with the proper headers,…

bingeScripter
- 84
- 9
3
votes
1 answer
Nginx 404 not found
I am using docker compose for running nginx with latest version, using the volumes i am copying the nginx.conf files into nginx docker container
nginx:
image: nginx:1.20
container_name: nginx
ports:
- 80:80
restart:…

klee
- 1,554
- 2
- 19
- 31
3
votes
1 answer
nginx with upstream occasitionaly delays exact 1 minute
Inner-System
HARDWARE : Xeon E-2236 x 32GB x 1TB SSD ) with 4 servers.
only for load balancing, for performancing x 2ea , for db CRUD
SOFTWARE : centos 7, nginx 1.18, node v12.22.1
When external connection to server, load-balancing server send to…

이정원
- 45
- 6
3
votes
1 answer
grpc_send_timeout doesn't work, Nginx closes GRPC streams unexpectedly
everyone!
I have a config for TLS NGINX server, which proxies stream (bidirectional/unidirectional) to my golang GRPC server. I use params in NGINX conf (server context):
grpc_read_timeout 7d;
grpc_send_timeout 7d;
But! My bidirectional streams…

Владимир Савостин
- 464
- 4
- 9
3
votes
4 answers
How do I Run React App on Nginx with a node.js backend on AWS EC2?
I am trying to run a react app with Node.js backend on the Nginx server.
Here's my server block in the nginx.conf file:
include /etc/nginx/conf.d/*.conf;
server {
listen 80;
listen [::]:80;
server_name _;
…

writeToBhuwan
- 3,233
- 11
- 39
- 67
3
votes
0 answers
nginx: "allow" directive in if condition
My web app loads different views based on subdomains, and subdomains are dynamic so I start the virtualhost configuration like this:
server {
listen 443 ssl http2 default_server;
server_name …

jones
- 31
- 1
3
votes
1 answer
How to enable a native module in nginx alpine docker image
I want to use http://nginx.org/en/docs/http/ngx_http_realip_module.html which directs to enable --with-http_realip_module to use it.
I am using docker to use this nginx
FROM nginx:alpine
COPY default.conf /etc/nginx/conf.d/default.conf
Now how to…

coderelliot
- 421
- 5
- 15
3
votes
2 answers
Redirect from Http to https issue in NGINX Google Compute Engine
We already tried other solutions on Stack Overflow but they didn't work for us.
We are having issues while redirecting our Domain url from http to https.
When we hit the http://example.com, it is not getting redirected to https://example.com. We…

Deven Nazare
- 538
- 5
- 24
3
votes
1 answer
how to add cache control header with proxy pass in nginx for some file extensions
I like add cache control header with nginx for some extensions such as .jpg, etc but so far some of the solutions I found on the net, I couldn't get it to work. I will tell you what I have tried.
I have tried variations of the following in different…

Laurence
- 7,633
- 21
- 78
- 129
3
votes
1 answer
Elastic Beanstalk + Nginx + Node + React 502 badegateway
I have the following stack:
node backend build
react frontend build
I want to deploy them into an ELB application.
When I do that and try to access the instance I get 502 Bad Gateway nginx/1.18.0 instead of the home page.
The backend is up and…

Alex M
- 59
- 8
3
votes
1 answer
Using Nginx with Create-React-App dev server and npm start
Frustrating question here. I have a react project created with created-react-app on a server that has to use Nginx for external connection/HTML server. What essentially I need to do is use nginx as a proxy server and when the URL is typed into…

Rachel
- 557
- 10
- 21
3
votes
1 answer
How to set up proxying past NGINX for Create-React-App running on localhost:3000
I have a React application created through create-react-app running on an Nginx Server. Of course it has the built in webpack server you can start by running npm start and it runs on localhost:3000 of course. Due to it being setup with Nginx, the…

Rachel
- 557
- 10
- 21
3
votes
1 answer
MIME type (“text/html”) mismatch in ngnix docker container deployed to AWS ECS
Steps performed at glance:
Angular 10 build step
Nginx docker container build and push step
AWS ECS service restart to refresh public container
Error received on endpoint:
GEThttp:///runtime.js
[HTTP/1.1 404…

Peter Koller
- 312
- 3
- 16
3
votes
1 answer
How to get calling origin in NGINX
Can someone help us to add calling origin in NGINX header?
We need to whitelist calling origin on the basis of the origin (from where the request originated/triggered)
location /some_filter_url {
proxy_pass http://test-domain.com;
…

Mantu Nigam
- 3,690
- 7
- 24
- 41