Questions tagged [nginx]

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

Nginx (= "Engine X") is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server.

Recommended Resources:

Related tags:

96 questions
12
votes
2 answers

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 more sophisticated (Docker and "traditional")…
CoolElectricity
  • 195
  • 1
  • 9
8
votes
2 answers

Blue Green Deployment DB transactions management

Imagining I have 2 sets of environment(Blue and Green) + | | | v +-------+---------+ | Proxy/LB | | | +--+-------------++ | | +-----++ …
veerendra2
  • 133
  • 8
6
votes
1 answer

What's the benefit of using Nginx to serve a Flask API on AWS?

I want to deploy a Flask API on AWS using Docker. A common way seems to be using a combination of Nginx + app server (e.g Gunicorn) + Flask app. The reason to use app server seems obvious to me. However, since I plan to use AWS ALB I'm not sure if…
Domen P
  • 61
  • 1
6
votes
1 answer

How to populate docker volumes in a build step to be used by a different container

I currently have a Docker compose based web app that uses Nginx as a reverse proxy that forwards traffic to a Flask and Grafana docker instance. The task at hand is to integrate a SSG (static site generator) such as Jekyll into the setup. The most…
Moritz
  • 1,227
  • 2
  • 11
  • 24
6
votes
1 answer

Nginx reverse proxy setup issues with Docker containers

I have two running docker containers: A Docker container running Nginx that serves Angular app resource files that were copied into the Docker image on docker build A Docker container that is an api that is current listening on port 5007 internally…
Brian Ogden
  • 381
  • 1
  • 4
  • 11
5
votes
2 answers

Multi-container server of PHP apps with reverse proxy?

I am going to deploy my app to production on VPS server, using Docker. My goal is stable version from latest tag at example.com, and dev version from dev tag at dev.example.com. Because this is an PHP application, container has own nginx+php set. I…
aso
  • 151
  • 2
5
votes
2 answers

How to add rules to Kubernetes NGINX Ingress controller from different yml definitions?

I'm trying to implement a Kubernetes cluster with a fanout pattern using an NGINX Ingress which routes traffic on multiple different hosts and paths to different microservices. The code for each microservice is hosted in their own Git repo,…
hofnarwillie
  • 151
  • 1
  • 2
4
votes
1 answer

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 and service for nginx which will be able to access…
Most Wanted
  • 691
  • 8
  • 18
3
votes
1 answer

Dockerfile COPY command with three input parameters

I've encountered a Multi-stage Build example, where the first stage builds a ngnix server, and the second stage creates a ngnix service from that image. The second stage looks like this: ... # second stage FROM scratch COPY --from=build…
orberkov
  • 195
  • 7
3
votes
1 answer

certbot renewal fails over ipv6

I'm using LetsEncrypt CA for SSL certificates with a cron job that renews them. Recently moved one of our domains to dual ipv4/ipv6 stack and now the certificate renewal fails for that domain: Attempting to renew cert (nodrama.io) from…
fbielejec
  • 183
  • 5
3
votes
1 answer

use of nginx server_name

I am new to nginx, I have configured my consul with nginx. It's working but I have few doubts in my configuration. here is my configuration upstream consul { server 127.0.0.1:8500; } server { listen 80 default_server; server_name…
Ravat Tailor
  • 153
  • 6
3
votes
2 answers

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 - type: tmpfs target: /dev/shm …
RajS
  • 151
  • 1
  • 3
3
votes
1 answer

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 found in the tutorial mentioned and the…
Tanuki
  • 163
  • 1
  • 5
3
votes
1 answer

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 tasks file itself. Then there are group_vars. Then…
2
votes
0 answers

404 Not Found when obtaining new certificates for nginx

I'm trying to obtain ssl certificate for the following server: server { server_name www.nodrama.io; rewrite ^(.*) http://nodrama.io$1 permanent; } server { server_name nodrama.io; listen 80; listen [::]:80 ipv6only=on; error_page…
fbielejec
  • 183
  • 5
1
2 3 4 5 6 7