Questions tagged [nginx]

For questions about Nginx, which is a web server, reverse proxy, TCP stream proxy and mail proxy.

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

502 bad gateway with Nginx, Colima, Docker on macos for port forwarding of 443 and 80

I need to redirect port 443 and 80 to port 3000 of localhost using nginx on docker-compose, docker and colima on macos but it throws 502 bad gateway. This is happening on macos and on linux machine ...
  • 1
0 votes
0 answers
42 views

nginx not picking up new index.html file docker container

I am docker newbie. I am trying to build a custom nginx image (lngin). Since I want to do run some custom scripts in my container before I start nginx. I am trying to use the following as a guideline ...
0 votes
1 answer
64 views

nginx reverse proxy on docker - problem with setup custom ip for each domain

I an have nginx reverse proxy running in a docker container. On the host server I have a service failover ip. I want set for each domain on the nginx server to a custom ip, beacause at the moment all ...
0 votes
0 answers
99 views

How do I get SignalR server deployed on AWS EKS behind nginx to allow websocket protocol connections?

I have a .NET 6 Web API with SignalR. Everything works perfectly when connecting directly to the API - locally as well as via Endpoint IP:Port on AWS EKS. However, it's failing to connect specifically ...
0 votes
0 answers
50 views

is it possible to read dns ip address from resolv.conf with in aws ecs container and use at the server startup?

app architecture: [ The normal request flow happens when an api request triggered from the UI as shown in the above diagram(abstracted few components to talk about specific point) as shown in the ...
0 votes
1 answer
129 views

How can I map a domain to docker containers?

I have a Redhat Linux server. In that, I installed docker and run docker containers in it. Now I want to map a domain to docker containers by using Nginx. What is the correct process to map domains by ...
0 votes
0 answers
49 views

Application specific nginx configuration stored in git repository

I'm curious as to how I'd configure nginx to work this way (Proof of Concept). Let's say I've got several microservices which I wish to deploy to some server. I'd like to have a microservice-specific ...
2 votes
1 answer
306 views

Docker Compose: How do you build an image while running another container?

I'm trying to build a Nuxt 3 application using docker compose. However, I'm having trouble with docker compose and dockerfile configuration. Context To give background on the project that I'm working ...
  • 21
0 votes
0 answers
292 views

Docker Container: Permission denied when trying to `mount --bind` docker `WORKDIR` to gitlabs `$CI_PROJECT_DIR`

In a Symfony project I have a Dockerfile for the webserver container and I want to use this container inside Gitlab-CI to access the app via Symfony panther which runs a browser inside the container. ...
0 votes
0 answers
59 views

Nginx to forward health checks to downstream microservices

I have a microservices application that is deployed in two different on-premises data centers for fault tolerance and high availability (Hot/Cold). There is a global traffic manager (GTM) that sends ...
  • 101
1 vote
1 answer
24 views

Load balancing while deployment

How does a L4 or L7 load balancer knows how to route traffic during deployments. Say, In Canary deployment strategy, how does LB route only 10% traffic to a certain server or in case of Blue-Green ...
  • 111
1 vote
1 answer
55 views

AWS- How to estimate a server configuration for nginx load balancer?

What kind of parameters can be used to estimate how much memory and the number of CPU cores are required for a load balancer? I have a requirement to setup LB based on Nginx to route the traffic to ...
  • 11
0 votes
0 answers
33 views

How are dev servers for testing working and available outside of VPN?

I'm a web developer and at work we have different servers (we call them stands) for testing our deployed app. In order to deploy our app we connect via ssh to one certain server and start a process in ...
  • 101
0 votes
1 answer
178 views

Why does php-fpm show nginx's IP while they are on different containers?

I am trying to set up an Nginx server for the purpose of load balancing between 4 Php-fpm servers. You can access my docker configuration files from this Github repository. My containers' network ...
0 votes
0 answers
2k views

nginx in Docker - returns "server" directive is not allowed here

I have dockerized an Angular application with the following Dockerfile and nginx.conf. The container works fine in Docker desktop. When deploying in Kubernetes cluster, the container fails to start ...
  • 101
3 votes
1 answer
1k views

How can I set let's encrypt certificates with Ansible?

I'm trying to get a let's encrypt certificate for my domain with Ansible. I have been reading this tutorial which is a bit outdated and the Ansible documentation. My playbook is a mix of what I have ...
  • 63
0 votes
0 answers
141 views

Autopilot GKE Nginx Ingress not working

I have installed the nginx ingress controller on autopilot GKE. I have a frontend nginx server running and a backend application. I am using the rewrite annotation. My ingress looks like so: rules: ...
1 vote
0 answers
25 views

How's it possible that ingress-nginx create a LoadBalancer in a Bare Metal K8s Cluster?

I have a bare-metal k8s cluster. I set up Ingress Nginx + MetalLB because, if I understood correctly, Ingress Nginx can't provide a LoadBalancer. Everything was working right until I realized that, if ...
0 votes
1 answer
1k views

Grafana NGINX reverse proxy not functioning correctly

I seem to be having trouble with Grafana behind an nginx proxy. I'm getting console errors and errors in Grafana, and the changes I try to make in Grafana are not working. Errors: From within Grafana ...
1 vote
0 answers
820 views

Using nginx as a transparent MITM forward proxy

I'm wondering if nginx (or squid, etc) can be used to setup a transparent MITM forward proxy in a docker environment (I'm currently using docker compose). I would have 3 "types" of ...
  • 111
1 vote
0 answers
14 views

Prevent Azure from swapping VMSS release while VM is still booting up

I use Azure DevOps to release a new VM into a VMSS. When I release the update, Azure swaps the images while the PHP-FPM process is still booting up. This results in 502 Bad Gateway errors for ...
2 votes
1 answer
147 views

Where does multi-role variable goes in Ansible?

There are multiple kind of variables in Ansible. And I find it overwhelming to wrap my head around them. Some of them are: The one we can write in roles//vars/main.yml The one we can write in the ...
0 votes
0 answers
360 views

Access API on a container from another container

I have 2 containers A and B which both contains webapps A is listening on 443 (apache2) B is listening on 4000 (node.js) Since I need to access to both services with https from my machine (win10), I ...
  • 101
0 votes
1 answer
1k views

Hosting Wiki.js using nginx-proxy

I am having difficulty getting Wiki.js hosted on a server. My current setup is using docker-compose utilising a reverse proxy with the eventual aim to host some services. I have successfully managed ...
1 vote
0 answers
26 views

OS level Nginx that proxies to Dockers vs Dockers that each contain their own Nginx

Given a traditional Linux server ie- Ubuntu on a VPS and a commercial app that requires a handful of Docker containers each of which need to communciate to one another ... with one of those containers ...
  • 111
0 votes
1 answer
579 views

How to configure single nginx ingress with letsencrypt and multiple bitnami wordpress containers?

I'm using bitnami/wordpress helm chart to create many websites which should run on different domains. I'd like to auto secure them and use a single ingress to route traffic. I'm using this tutorial ...
1 vote
1 answer
5k views

Nginx Ingress Controller - error creating inClusterConfig

What I'm trying to do I'm trying to get the Nginx controller up and running on my kubernetes cluster with the NLB version of the config files. The problem The ingress-nginx-admission-create and ...
3 votes
1 answer
5k views

Kubernetes serve static content with ingress

I have a simple Django application and on a regular EC2 instance nginx is a reverse proxy serving static files and proxying requests to gunicorn/wsgi backend app. Should I have a separate deployment ...
0 votes
1 answer
72 views

Which container will be targeted when replicas larger than 1

Below is a simplified version of my docker-compose.yml file. I can understand or find any resources to tell me which container of the 5 django replicas the nginx container will target if i reference ...
0 votes
1 answer
98 views

Nginx-Ingress Controller are compatible with Network Security Policy or not?

I have created one application where I use Nginx-Ingress Controller version 3.29.0. Without using network security policy I'm able to access my application. But, after applying network security policy,...
1 vote
1 answer
1k views

Enable TLSv1 TLSv1.1 for specific Ingress with Nginx Ingress

I try to enable TLSv1 and TLSv1.1 for one specific ingress on a AKS cluster. By default, only TLSv1.2 is enabled. I don't want to apply this configuration on my all cluster, just on a specific ...
  • 41
0 votes
1 answer
111 views

Nginx healthcheck does not stop

I have the following healthcheck condition for a nginx container inside my docker-compose.yml file: healthcheck: test: ["CMD", "curl", "-f", "http://front-service:...
0 votes
1 answer
255 views

Can I move SSL certificate files from one server to another for the same domain?

I have a website running at https://domain.com and IP a.a.a.a, with an SSL cert issued by GoDaddy. The server is deployed with Nginx. Everything is working fine as it is. However I'm trying to deploy ...
  • 103
1 vote
1 answer
252 views

Disabling HTTP Basic auth for requests from specific ips in k8s ingress

Currently I have a webpage which is freely accessible from certain networks an requires HTTP basic auth otherwise. This behaviour is set in the nginx config. It looks something like this: geo $...
0 votes
2 answers
2k views

Is SSL/HTTPS Needed Between Docker Containers on the Same Network?

As the title of the questions asks, is it important/needed to have ssl/https working between docker containers on the same network? Our setup is an Nginx container that proxies two Tomcat containers. ...
  • 101
1 vote
1 answer
659 views

WordPress Site Health errors when using Docker and Nginx

I am trying to setup a production environment for multiple WordPress sites using Docker, Nginx reverse proxy, and Let's Encrypt. I have 3 containers for the proxy group using the jwilder/docker-gen, ...
0 votes
1 answer
67 views

How to run two react project through nginx on same machine

I am using the react for the frontend. I have a code which runs on port 3000. Under that admin panel code is also there which I need to move to out of the project and run separately on different port ...
  • 111
0 votes
1 answer
283 views

Getting a 502 Bad Server Request on Nginx [closed]

I'm trying run the frontend (react) and a backend (nodejs, express) from a same ubuntu 20.4` machine but for some reason my nginx is not mapping correctly. I don't know if I have a typo somewhere or ...
2 votes
2 answers
10k views

How to serve a custom index.html using the stock nginx docker image?

How do I serve static content from the default nginx docker image? Given: root@mordor:~# root@mordor:~# docker image ls nginx REPOSITORY TAG IMAGE ID CREATED ...
0 votes
1 answer
331 views

How to navigate to an index.html with nginx?

This builds and runs without apparent error: root@mordor:/home/nicholas/docker/nginx# root@mordor:/home/nicholas/docker/nginx# docker exec -ti some-nginx bash root@2c912aa5ce5c:/# root@2c912aa5ce5c:/...
0 votes
2 answers
1k views

How to copy HTML files to include into nginx?

How do I copy an index.html file into nginx? root@mordor:/home/nicholas/docker/nginx# root@mordor:/home/nicholas/docker/nginx# ll total 12 drwxrwxr-x 2 nicholas nicholas 4096 Nov 13 16:18 ./ drwxrwxr-...
1 vote
1 answer
558 views

How to access a fully qualified domain name through "localhost"?

About nine minutes into a tutorial on ERPNext I followed directions as: root@mordor:/home/nicholas/git/frappe_docker# root@mordor:/home/nicholas/git/frappe_docker# cat .env LETSENCRYPT_EMAIL=nicholas@...
0 votes
1 answer
500 views

nginx rewrite with proxy_pass

I want to proxy requests with nginx to different domain and also rewrite some part of the path. For example http://origin.com/ - > http://target.com/_plugin/kibana How to accomplish such automated ...
9 votes
2 answers
4k views

What is the purpose of running PHP-FPM in its own container instead in the same container as apache2/nginx?

I'm fairly new to Docker so excuse any obvious ignorance or misunderstandings. That said, I've been coding and configuring web applications for a long time now. I have recently been dabbling with some ...
  • 165
1 vote
1 answer
105 views

Snake bites its tail problem automating configuration of Certbot with Ansible

I have a public web-site with Nginx in front of it. We use free Letsencrypt certificates to set up https. These are acquired and renewed by Certbot program. I want to implement entire servers ...
  • 63
2 votes
1 answer
110 views

Question on NGINX reverse proxy when there are services on the host and on containers

I have the following architecture, which consists of an nginx server on the host machine, and 3 urls, app1.com, app2.com, app3.com: app1 and app2 are both in the host machine, lets say they are an ...
1 vote
1 answer
2k views

Nginx ingress controller redirects the url to /login

I am trying to access a url example.com/service/test1 but it redircts me to example.com/login. Below is my YAMl file: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: test-ing ...
7 votes
2 answers
1k views

Blue Green Deployment DB transactions management

Imagining I have 2 sets of environment(Blue and Green) + | | | v +-------+---------+ | Proxy/LB | | | +--+----...
1 vote
0 answers
33 views

Nginx php fpm symfony setup [closed]

server { listen 80; server_name dev.com; server_tokens off; location ^~ /.well-known/acme-challenge/ { default_type "text/plain"; root /etc/letsencrypt; ...
0 votes
1 answer
89 views

CloudFront -> ELB -> Pod running Gunicorn

Can anyone tell me if there's a "killer" reason to put NGINX in front Kubernetes pods running Gunicorn? externally, I have CloudFront hitting an ELB which in turn engages the pods running Gunicorn ...
  • 107