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
-1 votes
0 answers
9 views

Clarification on DevOps Exam Task - Compiling 3CS-NGINX, NodeJS App, and Docker Compose

I recently took a DevOps exam for a company and received feedback that I did not understand the question properly. I was given the following tasks: Task 1 - Compiling 3CS-NGINX: Clone the Github ...
Scare's user avatar
  • 1
0 votes
0 answers
23 views

Load balancing between Slurm clusters

What strategy of load balancing in k8s would be recommended between Slurm (think SGE) clusters? The reason I raise this is Slurm has a Pythonic API governing the queuing system. Information can freely ...
M__'s user avatar
  • 101
0 votes
0 answers
16 views

how to choose where to redirect a request depending on the validity of the token?

Is it possible to implement, and if so, how, redirecting a request to different places depending on whether the token in the request header is valid or invalid? For example my configuration: ...
Pavlo Plynko's user avatar
0 votes
1 answer
22 views

Increase NGINX Client_Max_Body_Size via YAML (AKS)

TLDR: Can I utilize my existing deployment YAML (see dev-deployment.yaml snippet below) to specify a client_max_body_size to a server or servers in my nginx ingress? Some background: I recently added ...
Conan Stuart's user avatar
0 votes
1 answer
35 views

How to scrape only some targets of EC2 based on tag

I have a requirement, where I have enabled NGINX metrics and I am trying to plot metrics with Prometheus. I am trying to plot metrics for NGINX EC2 server which has a tag named test=nginx or by ...
Siva Malla's user avatar
2 votes
1 answer
52 views

Is there an nginx that isn't an ingress controller?

I'm using traefik as an ingress controller. I'm looking to route traffic to a webserver. Is there a helm chart that packages up nginx not as an ingress controller but as a webserver?
Evan Carroll's user avatar
  • 1,794
0 votes
0 answers
48 views

WordPress in docker compose slow first response

In a VPS I have created a structure using docker where there is an NGINX Proxy Manager to handle the incoming requests and with a docker-compose.yaml I have 5-6 simple sites (no eCommerce) running. My ...
Argiris's user avatar
1 vote
1 answer
38 views

What should I learn next as a devops beginner? [closed]

I'm working as a devops engineer in a big tech company (local). The technologies used here are nginx, linux, sql, redis, docker, glassfish and payara, kubernetes, tomcat, gitlab, jenkins etc. I've ...
zeeshanseikh's user avatar
1 vote
1 answer
243 views

nginx container isn't reachable from outside

I have to run a container running nginx as a reverse proxy using podman. Dockerfile is as follows: FROM nginx COPY nginx/* /etc/nginx/ Where basically I have a default.conf file under conf.d which ...
Francesco Rogo's user avatar
0 votes
0 answers
146 views

Custom path rewriting for different services in Kubernetes NGINX Ingress

0 I am currently working on setting up an NGINX Ingress for my Kubernetes cluster, and I've encountered a bit of a complex scenario involving path rewriting. To give a brief overview, I have multiple ...
Vizeet Srivastava's user avatar
0 votes
0 answers
77 views

Reverse proxy in front of Google Artifact Registry (GAR)

Using GAR, requires the usage of some "generic" URLs, like europe-west-1-docker.pkg// We would like to use a custom URL and then load balance to the proper registry based on that URL/path. ...
carrotcakeslayer's user avatar
0 votes
0 answers
98 views

Angular universal with docker giving bad gateway

I am trying to dockerizing a angular universal app using nginx, and it's giving me really hard time. It keeps saying 502 bad gateway and I am unable to wrap my head around it. This is my Dockerfile ...
M Safdar Ali Khan's user avatar
0 votes
0 answers
51 views

Tenant specific URL in multi tenant SaaS using Kubernetes

Considering, there are more than 1 K8s cluster in one region, i am planning to generate tenant URLs like below. Format: <K8s-cluster-id>-<ingress-id>-<pool-id/dedicate-id/namespace-id&...
Niraj Nandane's user avatar
1 vote
1 answer
404 views

redirect url/ to url/test using ingress

I'm running an application on kubernetes, when i use this url: https://myapp.test.com/ it redirects me to ressource not found (problem in the application). what i need now is to avoid this page by ...
safae's user avatar
  • 11
2 votes
1 answer
783 views

How do I get real client IP inside docker container for logging to the database

I have a following docker compose file: version: "3.8" services: postgres: image: postgres:11 volumes: - myapp_postgres_volume:/var/lib/postgresql/data ...
RajS's user avatar
  • 141
0 votes
0 answers
102 views

How to generate swagger documentation from nginx conf file?

I need to get a list of endpoints, that are currently available on nginx plus. Live or list view before running nginx. However I couldn't find any solution. Is it even possible and if so, with some ...
JaeVi's user avatar
  • 1
0 votes
1 answer
532 views

kube-prometheus-stack/grafana - Getting "too many redirects" error

I have a Kubernetes cluster with the kube-prometheus-stack Helm chart (https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack) installed. NGINX is used as the ...
Joseph Gagnon's user avatar
0 votes
0 answers
43 views

Is it possible to have both tls and mtls for different paths on the same host in nginx ingress controller?

I have some services in azure AKS currently that I would like to expose with my NGINX ingress controller. Some of them however use client certificates for authorization. Is it possible to expose ...
Guts's user avatar
  • 101
0 votes
0 answers
656 views

Why k8s with minikube NodePort are not working?

I am using minikube on my windows 11 machine just to start testing k8s. And my NodePorts are not giving an URL, and even when I recover the service's I.P and ports by using kubectl describe and I use ...
Eugenio.Gastelum96's user avatar
1 vote
1 answer
507 views

Why does running a nginx image in docker interactive mode makes nginx not working

I have made a docker container from nginx running in background this way: docker run -d --name nginx1 -p 49699:80 nginx When I go to localhost:49699 on a browser with cleared cache it works properly ...
Eugenio.Gastelum96's user avatar
0 votes
0 answers
243 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 ...
Ako's user avatar
  • 1
0 votes
0 answers
864 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 ...
ivar kesav's user avatar
0 votes
1 answer
201 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 ...
zndbrgboz's user avatar
0 votes
0 answers
248 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 ...
Akshay Rajpaul's user avatar
0 votes
0 answers
134 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 ...
anand mohan reddy's user avatar
0 votes
1 answer
666 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 ...
Rajesh Gandhavarapu's user avatar
2 votes
1 answer
578 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 ...
Zerro97's user avatar
  • 21
1 vote
1 answer
75 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 ...
Chel MS's user avatar
  • 113
1 vote
1 answer
175 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 ...
Ankur's user avatar
  • 11
0 votes
0 answers
36 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 ...
thatodz's user avatar
  • 101
1 vote
1 answer
408 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 ...
NewUser's user avatar
  • 13
0 votes
0 answers
3k 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 ...
Kabilesh's user avatar
  • 101
3 votes
1 answer
2k 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 ...
Tanuki's user avatar
  • 163
1 vote
0 answers
36 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 ...
Daniel Fonnegra García's user avatar
1 vote
1 answer
2k 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 ...
baxtmann's user avatar
1 vote
0 answers
2k 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 ...
Matty F's user avatar
  • 111
1 vote
0 answers
15 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 ...
JimmyBanks's user avatar
3 votes
1 answer
491 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 ...
Santosh Kumar's user avatar
0 votes
0 answers
551 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 ...
Martial's user avatar
  • 101
0 votes
1 answer
2k 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 ...
Matthew Ewan-Laws's user avatar
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 ...
Derrick's user avatar
  • 111
0 votes
1 answer
686 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 ...
user358448's user avatar
1 vote
1 answer
7k 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 ...
Zachary Delano's user avatar
4 votes
1 answer
7k 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 ...
Most Wanted's user avatar
0 votes
1 answer
113 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 ...
Felix Eklöf's user avatar
0 votes
1 answer
115 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,...
Kaivalya Dambalkar's user avatar
2 votes
1 answer
2k 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 ...
benCat's user avatar
  • 61
0 votes
1 answer
170 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:...
Leandro Battochio's user avatar
0 votes
1 answer
404 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 ...
puma91's user avatar
  • 103
1 vote
1 answer
315 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 $...
fourslashw's user avatar