Questions tagged [nginx]
For questions about Nginx, which is a web server, reverse proxy, TCP stream proxy and mail proxy.
30
questions with no upvoted or accepted answers
1
vote
1
answer
208
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 ...
1
vote
0
answers
39
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 ...
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 ...
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 ...
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 ...
1
vote
0
answers
2k
views
Docker compose curl healthcheck on official nginx image not working
We have the following DockerFile
FROM nginx
RUN apt-get update && apt-get install -y curl \
&& rm -rf /var/lib/apt/lists/*
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 443
WORKDIR /...
0
votes
0
answers
16
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 "$(...
0
votes
0
answers
5
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 ...
0
votes
0
answers
149
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 ...
0
votes
0
answers
22
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 ...
0
votes
0
answers
153
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 ...
0
votes
0
answers
38
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 ...
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:
...
0
votes
1
answer
164
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 ...
0
votes
0
answers
93
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 ...
0
votes
0
answers
308
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 ...
0
votes
0
answers
119
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. ...
0
votes
0
answers
130
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
...
0
votes
0
answers
57
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&...
0
votes
0
answers
129
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 ...
0
votes
0
answers
72
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 ...
0
votes
0
answers
944
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 ...
0
votes
0
answers
1k
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
303
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
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 ...
0
votes
0
answers
37
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 ...
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 ...
-1
votes
0
answers
159
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 ...
-1
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 ...
-1
votes
0
answers
604
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 ...