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
2
votes
1answer
15 views

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. ...
0
votes
1answer
5 views

Deploy dist file in docker file

How to write a docker file to deploy a dist file of an Angular Application In a server. I see most of them have used nginx as a server. Why is it so? Is there any specific reason I want it to be ...
0
votes
1answer
14 views

How to run WSGI Python server without Apache or NGINX [closed]

Is there a way to run a Python server that uses WSGI bindings directly? I am trying to go with the one process per container philosophy which will naturally get rid of Apache/NGINX from the container ...
0
votes
0answers
39 views

docker-letsencrypt-nginx-proxy-companion certs for non-docker servers

We have an nginx reverse proxy at our company, which also runs certbot to generate SSL certificates for our backend servers. I wanted to replace that reverse proxy server with a docker container of ...
0
votes
0answers
125 views

Issues trying to run multiple php-fpm containers for different environments for the same application behind a traefik proxy

I am setting up a live and test environment for a website I am hosting. Currently, I am facing issues and I can't seem to figure out why it is happening. I am using a MySQL, Nginx and PHP-fpm ...
1
vote
1answer
32 views

Does K8s ClusterIP service supports custom timeout?

Report from Stack Overflow due to off-topic Base knowlege Since this question deals particularly with various timeouts configuration in Nginx, I thought giving their references here would make it ...
0
votes
0answers
27 views

Certbot installation fails inside Docker

What I'm trying to do, to create a Docker container with apt-mirror which also uses Cerbot for Letsencrypt with nginx. There is an image for nginx/certbot but it's based on Alpine Linux (=no ...
0
votes
0answers
24 views

Why can I connect to my docker socket.io server with http but not directly to the socket?

I am following this tutorial on creating a docker/socket.io/aws app. Following the tutorial completely, the app works. However, if I try to access the socket from outside the self hosted client I can ...
0
votes
1answer
14 views

Docker NGINX issue — unable to edit nginx.conf

I'm having trouble figuring out how to edit nginx.conf inside NGINX open source Docker container. I'm trying to follow the directions here: https://docs.nginx.com/nginx/admin-guide/installing-nginx/...
1
vote
2answers
39 views

Using HTTPs in application vs reverse proxy

Is there any difference if you use TLS in your application for example in node or java(spring), and if you use normal HTTP in your application and then set up Nginx as a reverse proxy and configure ...
0
votes
1answer
154 views

Nginx routing setup within Docker container, request timing out with 502

I have a React application where a user can enter in some number, there is an algorithm that runs some calculation and spits out a result, but before we get there, Nginx is looking at the request and ...
0
votes
0answers
86 views

Nginx ingress controller failed to run

I'm trying to deploy nginx-ingress controller in my own server without load balancer and cloud provider. I did the following steps: apiVersion: v1 kind: Namespace metadata: name: ingress-nginx ...
0
votes
1answer
501 views

Very slow network when serve container content via Nginx after published Docker port

What I have created is: I have a Docker container that is published the port "3000:3000". If I'm accessing the container in this way: http://example.com:3000 everything is working great. The ...
0
votes
1answer
93 views

PHP-FPM with Nginx in different containers (share init.d response between)

I have a Docker setup for my project with PHP-FPM, Nginx and many other services required by the application, but inside the PHP app I've to check the init.d/nginx configtest for new dynamic Vhosts (...
0
votes
0answers
49 views

Do I need UCP layer 7 routing or can I configure this with nginx?

I have an application that I want to run in high availability and I am wondering if I need the Docker EE with UCP to configure the layer 7 routing or can I use nginx for this? I know I can use UCP, ...
0
votes
0answers
110 views

Nginx will not compile after openssl upgrade to 1.1.1

I want to use a feature that is in a fairlu new version of Nginx (TLS 1.3 support) and as such I needed to upgrade my Nginx to version 1.13.1, I did that fine along with pagespeed (1.11.33.2) as well ...
0
votes
1answer
35 views

Multiple Application in single SSL 443 server NGINX

I have two application served in a single server app1.domain.com and app2.domain.com. I want to proxy pass the request from app1 to serve static file and app2 to proxy_pass localhost:8000 I already ...
0
votes
0answers
89 views

How to access URL in virtual machine from browser in host

I'm running a kubernetes cluster inside a virtual machine. I can access(curl) the URL https://wso2-apim/carbon from the virtual machine which is set up using a kubernetes ingress to point to a service ...
1
vote
2answers
43 views

Issue with custom domain SSL certification

We are working on saas application which is hosted on app.example.com. Now we are trying to give the option to the users where their own domain or sub domain like dev.stack.com point to my application ...
0
votes
0answers
52 views

Nginx modsecurity fails to compile

I am trying to compile modsecurity 2.7.7 (this download link) along with nging 1.15.8 but I am having issues where it will not compile. Commands used when compiling modsecurity: ./autogen.sh ./...
1
vote
2answers
33 views

Is this okay to use double proxy-server setup (on host and in container) on one machine?

One nginx server on host machine with renewable certificate (via certbot). And another nginx server inside docker container. First one should redirect all traffic to the second one. Currently I have ...
0
votes
1answer
19 views

What is the common term for Apache virtual hosts or Nginx block systems?

A webserver environment as with Apache or Nginx includes a type of file (or a file system) that I can call a webserver substrate; In Apache it is called a Virtual host and in Nginx I can call it a "...
0
votes
0answers
20 views

How to generate an include tree for an application configs

I have an legacy nginx + lua based app that has a few hundreads of thousands of lines of config generated in several ways with multiple includes from different flies I would need an tool that could ...
4
votes
2answers
103 views

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 ...
0
votes
0answers
702 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
0answers
126 views

Using Composer when php-fpm and Nginx is in separate Docker containers

I'm setting up a pipeline for CI, and I have read about pros and cons of having php and Nginx in separate containers. Personally I like how tidy and maintainable it is when its separated, combined ...
-1
votes
1answer
77 views

WinNMP (Nginx) returning “Directory access is forbidden.”

I installed WinNMP with the typical install. and added two files that I am using to check the installation(among others) C:\Proj\MyRG\public_html\test.htm C:\Proj\MyRG\public_html\application\index....
1
vote
1answer
119 views

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: ... # ...
0
votes
0answers
21 views

How to properly assess the behavior of a site in n requests from n users?

I have been assigned with a task that comes out of habitual work and I need your advice. The task consists of: A website x that has been very slow, especially in a view that has the particular case ...
2
votes
0answers
279 views

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 ...
2
votes
1answer
431 views

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: ...
2
votes
0answers
155 views

What is the preferred method of using feature flags in Flask?

I wanted to ask what the preferred tool, method or framework is when using feature flags with Flask applications. The main problem is that the most relevant result has not seen an update since 3 years,...
4
votes
2answers
1k views

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 ...
3
votes
1answer
112 views

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 { ...
1
vote
1answer
530 views

Consul with Nginx, not using docker

I am from development background and totally new to DevOps, I want to setup consul for service discovery for my micro-services, services are reverse proxied by Nginx. Now I want to configure Nginx ...
1
vote
1answer
3k views

Jenkins returns 502 gateway error and (104: Connection reset by peer)

So my server got maintenance schedule from cloud provider, after maintenance process, the server rebooted, then my jenkins cannot be accessed from the web anymore, I am using nginx and checking the ...
0
votes
2answers
5k views

How to solve `no live upstreams while connecting to upstream` when trying to rproxy jenkins using jwilder/nginx?

https://github.com/jwilder/nginx-proxy nginx.1 | 2018/03/04 22:24:54 [error] 102#102: *276 no live upstreams while connecting to upstream, client: 83.85.143.226, server: jenkins....
4
votes
1answer
3k views

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 ...
5
votes
1answer
3k views

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 ...