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 vote
0 answers
23 views

How to deploy dockerized MERN stack app on AWS EC2 instance?

I dockerized my MERN stack app (Next js, node js, MongoDB) and tried to deploy it on the AWS EC2 instance. When I try to access my backend on port 5000 via AWS Public IP, it works fine but when I try ...
Rana Faraz's user avatar
0 votes
0 answers
12 views

Minikube NGINX Unable to connect to the remote server

i have installed and run minikube on my NUK for testing purpose. Im trying to expose an nginx instance running on a POD so that it can be reached from another PC on the same network. My network is ...
cyberdemon's user avatar
0 votes
1 answer
20 views

Ignore 'host not found in upstream' in docker swarm environment

I have a problem with nginx configuration in docker swarm environment. I would like to set the nginx service used as a reverse proxy to make the dockerized services communicate, everything works ...
Matteo Pasini's user avatar
-1 votes
0 answers
17 views

docker service create error: library BIO_new_file No such file or directory crypto/bio/bss_file c67 calling fopen when use certbot to create ssl cert

I use the below script to create an SSL certificate for my website which is hosted in VPS with dockerized nginx webserver. It's got the certificate from Let's Encrypt. #!/bin/bash if ! [ -x "$(...
Arani's user avatar
  • 99
0 votes
0 answers
6 views

Running GKE Cluster behind a FortiGate Firewall VM

I have a simple project in which I should implement and deploy a GKE cluster behind a FortiGate FW, the Architecture of my project is (project is deployed on Google Cloud Platform): An external VPC ...
Mohammad Yousef's user avatar
0 votes
0 answers
166 views

Kubernetes nginx ingress setup to get visitor's real IP using Cloudflare

I have a kubernetes setup as below using Cloudflare as my DNS hosting. The domain is on Cloudflare and it's proxied. I tried to search about how to make my nginx ingress to get the visitor's real IP ...
DevGuy's user avatar
  • 1
-1 votes
0 answers
24 views

Getting IDENTITY_PROVIDER_LOGIN_ERROR with keycloak, OAuth authentication with Github, "federatedIdentityModel" is null

I am running KeyCloak as one of the services in a K3s cluster to provide identity management for another service on the cluster, both of which is behind Ngnix. After deleting Github(the initial ...
Lois's user avatar
  • 1
-1 votes
0 answers
187 views

502 Bad Gateway with nginx inside docker

I am facing a problem with reverse proxy regarding Docker services. When I try to access http://website.com its Ok, when I try to access http://website.com:2086 its also Ok but when I try to access ...
Rodney's user avatar
  • 1
0 votes
0 answers
42 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
22 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
220 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
112 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
72 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
  • 2,089
0 votes
0 answers
98 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
42 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
653 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
317 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
130 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
131 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
59 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
695 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
2 answers
1k 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
133 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
764 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
2 votes
1 answer
1k 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
1 answer
314 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
1 answer
1k 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
643 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
106 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
211 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
1 vote
1 answer
484 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
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
0 votes
0 answers
41 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
0 votes
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
  • 109
3 votes
1 answer
735 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
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
0 votes
0 answers
28 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
  • 109
0 votes
1 answer
725 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
8k 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
8k 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
125 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
117 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
  • 71
0 votes
1 answer
235 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
444 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
338 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
1 vote
3 answers
4k 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. ...
hooknc's user avatar
  • 111
1 vote
1 answer
860 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, ...
mtibbits's user avatar
0 votes
1 answer
155 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 ...
Aks's user avatar
  • 111