Questions tagged [nginx]
For questions about Nginx, which is a web server, reverse proxy, TCP stream proxy and mail proxy.
55
questions
0
votes
3answers
42 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.
...
0
votes
0answers
7 views
nginx redirect for Gatsby.js
I need to setup rewrite/redirect for some routes to make gatsby js pages work properly (as per this post).
But this configuration just gives me an infinite loop of redirects.
location /app {
...
0
votes
0answers
17 views
Using Sonatype Nexus docker proxy
I have a Sonatype Nexus deployed under repository.company.com (it's behind an nginx proxy).
I created a docker registry and docker proxy and added them to one docker group "company-docker-group&...
2
votes
1answer
37 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, ...
0
votes
1answer
17 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 ...
0
votes
1answer
12 views
Getting a 502 Bad Server Request on Nginx [closed]
I'm trying run the frontend (react) and a backend (nodejs, express) from a same ubuntu 20.4` machine but for some reason my nginx is not mapping correctly. I don't know if I have a typo somewhere or ...
1
vote
0answers
29 views
what is the Traefik configuration for running ERPnext locally?
I'm not fully understanding the configuration for running ERPnext locally rather than, for example, on a VPS.
root@mordor:/home/nicholas/git/frappe_docker#
root@mordor:/home/nicholas/git/...
1
vote
2answers
33 views
How to serve a custom index.html using the stock nginx docker image?
How do I serve static content from the default nginx docker image? Given:
root@mordor:~#
root@mordor:~# docker image ls nginx
REPOSITORY TAG IMAGE ID CREATED ...
1
vote
1answer
22 views
How to navigate to an index.html with nginx?
This builds and runs without apparent error:
root@mordor:/home/nicholas/docker/nginx#
root@mordor:/home/nicholas/docker/nginx# docker exec -ti some-nginx bash
root@2c912aa5ce5c:/#
root@2c912aa5ce5c:/...
1
vote
2answers
43 views
How to copy HTML files to include into nginx?
How do I copy an index.html file into nginx?
root@mordor:/home/nicholas/docker/nginx#
root@mordor:/home/nicholas/docker/nginx# ll
total 12
drwxrwxr-x 2 nicholas nicholas 4096 Nov 13 16:18 ./
drwxrwxr-...
0
votes
1answer
34 views
How to access a fully qualified domain name through “localhost”?
About nine minutes into a tutorial on ERPNext I followed directions as:
root@mordor:/home/nicholas/git/frappe_docker#
root@mordor:/home/nicholas/git/frappe_docker# cat .env
LETSENCRYPT_EMAIL=nicholas@...
1
vote
1answer
21 views
nginx rewrite with proxy_pass
I want to proxy requests with nginx to different domain and also rewrite some part of the path. For example
http://origin.com/ - > http://target.com/_plugin/kibana
How to accomplish such automated ...
0
votes
0answers
14 views
Containerized NGINX and SSL cert/key from the secret
I'm trying to load SSL cert/key from the Docker secrets in NGINX configuration (based on that post) as follow
# TLS config
ssl_certificate /run/secrets/localhost.crt;
...
1
vote
0answers
30 views
Docker container with Ubuntu 16.04, Nginx, Nodejs via docker-compose.yml
I am new to Docker Containers. But I am very confused with a few things.
My goal is to create docker container with ubuntu 16.04,Nginx and nodejs.
From googling and tururials I only found docker-...
1
vote
0answers
103 views
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 ...
1
vote
1answer
40 views
Snake bites its tail problem automating configuration of Certbot with Ansible
I have a public web-site with Nginx in front of it. We use free Letsencrypt certificates to set up https. These are acquired and renewed by Certbot program. I want to implement entire servers ...
0
votes
0answers
18 views
How to automatically add externalips in nodeport to nginx ingress in baremetal?
We are running Kubernetes in baremetal and we are looking into nodeport and network load balancer as an alternative to MetalLb as we experienced timeouts and drops using BGP/MetalLb
So we looked into ...
2
votes
1answer
35 views
Question on NGINX reverse proxy when there are services on the host and on containers
I have the following architecture, which consists
of an nginx server on the host machine, and 3 urls, app1.com, app2.com, app3.com:
app1 and app2 are both in the host machine, lets say they are an ...
1
vote
0answers
58 views
How to allow custom headers in Nginx Ingress controller
I have a nginx ingress controller running in AKS. One of my application is accessed using POSTMAN, in which I pass some custom headers and their values.
The problem is that those custom header values ...
1
vote
1answer
222 views
Nginx ingress controller redirects the url to /login
I am trying to access a url example.com/service/test1 but it redircts me to example.com/login.
Below is my YAMl file:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: test-ing
...
6
votes
2answers
266 views
Blue Green Deployment DB transactions management
Imagining I have 2 sets of environment(Blue and Green)
+
|
|
|
v
+-------+---------+
| Proxy/LB |
| |
+--+----...
2
votes
0answers
15 views
Nginx php fpm symfony setup [closed]
server {
listen 80;
server_name dev.com;
server_tokens off;
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
root /etc/letsencrypt;
...
0
votes
1answer
18 views
CloudFront -> ELB -> Pod running Gunicorn
Can anyone tell me if there's a "killer" reason to put NGINX in front Kubernetes pods running Gunicorn?
externally, I have CloudFront hitting an ELB which in turn engages the pods running Gunicorn ...
2
votes
1answer
63 views
Nginx unable to get SSL cert to work
I'm trying to get a kubernetes cluster using the nginx ingress controller and cert manager to get an SSL cert from lets encrypt. Currently is appears the cert has been issued however I am unable to ...
1
vote
2answers
838 views
How do I set up certbot, with Nginx, both in a Docker container?
Title says it all I guess. I didn't even know what Ubuntu/Nginx/Docker/etc was a week ago but I've managed to set up Docker/Docker Compose, PHP-FPM, PHPMyAdmin + Gitlab on a reverse proxy through ...
1
vote
1answer
167 views
Why is Rails (with Nginx/Passenger via Ansible) unable to see my RAILS_MASTER_KEY environment variable?
I'm writing Ansible playbooks to provision an Ubuntu 18.04 server.
I want to provision the server for a Rails application using Passenger and Nginx. I used geerlingguy.passenger from Ansible Galaxy ...
2
votes
1answer
91 views
Is it a bad idea to use a web app including nginx, gunicorn and flask in a single docker container? [duplicate]
I want to deploy a web app as a docker container. Currently I need to set up nginx, gunicorn and flask to realize this. There are many guides around to do it in docker but always divide it in two ...
1
vote
1answer
55 views
Kubernetes nginx ingress controller - one pr. environment?
I have a kubernetes cluster in Azure. In this i have three namespaces:
development
staging
production
I have installed nginx ingress controller into its own namespace, ingress-nginx. I am kind of ...
4
votes
1answer
332 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. ...
1
vote
1answer
22 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
166 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 ...
2
votes
1answer
180 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
1answer
111 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/...
2
votes
2answers
45 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 ...
2
votes
1answer
784 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 ...
-1
votes
1answer
1k 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 ...
1
vote
2answers
241 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
1answer
232 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 ...
1
vote
2answers
49 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 ...
1
vote
2answers
35 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
22 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 "...
4
votes
2answers
133 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
1k 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 /...
-1
votes
1answer
125 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....
2
votes
1answer
295 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:
...
# ...
2
votes
0answers
368 views
404 Not Found when obtaining new certificates for nginx [closed]
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 ...
3
votes
1answer
626 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
230 views
What is the preferred method of using feature flags in Flask? [closed]
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
2k 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
119 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 {
...