jwilder-nginx-proxy

Jwilder nginx proxy - 503 after docker compose structure update

北城以北 提交于 2021-02-20 04:17:05
问题 I'm using jwilder/nginx-proxy with separate docker-compose.yaml . It looks like this: proxy: image: jwilder/nginx-proxy restart: always volumes: - /var/run/docker.sock:/tmp/docker.sock:ro - ./nginx/conf.d/proxy.conf:/etc/nginx/conf.d/proxy.conf:ro - /Users/marcin/Docker/local_share/certificates:/etc/nginx/certs:ro ports: - "80:80" - "443:443" container_name: proxy I'm using it for quite a long time and it's working fine when my project docker-compose.yaml looks like this: web: build: /Users

How to make Docker container see real user IP?

假如想象 提交于 2021-02-17 19:27:14
问题 The problem Inside nginx-proxy Docker container (more info below), I always see the same IP adress for every connection: 172.18.0.1 (which is the nginx-proxy network gateway). For example: nginx.1 | www.my-site.tld 172.18.0.1 - - [28/Nov/2017:17:22:21 +0000] "GET /some/path HTTP/2.0" 200 46576 "https://www.my-site.tld/some/path" "Mozilla/5.0 (Linux; Android 4.4.2; PSP5507DUO Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 YaBrowser/17.10.0.446.00 Mobile Safari/537.36

I get an Nginx 503 error when using Laradock to deploy a Laravel App

假如想象 提交于 2021-01-29 06:28:14
问题 Months ago I deployed a Laravel app ( laravel1 ) using Laradock and Jwilder Nginx Proxy. Recently I tried to deploy a second Laravel app ( laravel2 ), by using the same configuration values in both .env and docker-compose.yml files. However, I am getting the Nginx 503 error: 503 Service Temporarily Unavailable / Nginx To give more context, this is the structure of my directories, where Laravel1 is the first app I deployed which is currently working fine, and Laravel2 which has the 503 error.

Too many redirects with reverse proxy

久未见 提交于 2021-01-05 12:22:49
问题 Setup: cloudflare DNS docker-compose nginx reverse proxy wordpress fpm nginx php handler Problem Too many redirects, like in these logs: Attaching to wp_db, wp, wp_web wp_db | 2020-01-27 12:13:10+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.11+maria~bionic started. wp_db | 2020-01-27 12:13:10+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' wp_db | 2020-01-27 12:13:10+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.11+maria~bionic

How can I redirect non-www to www in https NGINX

帅比萌擦擦* 提交于 2020-12-31 06:01:40
问题 I have a question related with Nginx redirects Bellow you can see configurations. My goal is to redirect from https://example.com to https://www.example.com I looked through almost all in stackoverflow and I didn't find any help. Please help me with this issue. I will provide all necessary information about my Nginx Web Server. I hope you will help me, with this difficult question. My file nginx.conf looks like there: user www-data; worker_processes 4; pid /run/nginx.pid; events { worker

Adding CORS header in nginx-proxy appends the value rather than overrides it

回眸只為那壹抹淺笑 提交于 2020-01-16 14:28:31
问题 I'm trying to add a cors header using nginx proxy Docker container https://github.com/jwilder/nginx-proxy. I've create a config file containing the line: add_header 'Access-Control-Allow-Origin' '*' always I've used a volume to pass this in through the docker-compose file at runtime so it appears at /etc/nginx/vhost.d/default But the resulting header in the api response contains two values separated by a comma: http://myapi-domain.com, * This makes cross-domain requests fail with the error:

How to change nginx-proxy settings

人走茶凉 提交于 2020-01-07 03:50:21
问题 I am using this lib: https://github.com/jwilder/nginx-proxy Here is my docker-compose file: version: '2' services: nginx-proxy: image: jwilder/nginx-proxy container_name: nginx-proxy ports: - "80:80" volumes: - /var/run/docker.sock:/tmp/docker.sock:ro whoami: image: jwilder/whoami environment: - VIRTUAL_HOST=whoami.local service1: image: mynode:1.4 build: . volumes: - .:/app restart: always environment: - VIRTUAL_HOST=service1.local service2: image: mynodeother:1.3 build: . volumes: - .:/app

Multiple docker services to listen on same host and port

点点圈 提交于 2019-12-13 08:58:51
问题 i am new to nginx and I am not sure is this normal behavior... Here is the lib I am using: https://github.com/jwilder/nginx-proxy I will explain here what I trying to accomplish... I have 2 additional services service1 and service2 those services are simple node.js images with API endpoints service1 have routes: - service1/api/first - service1/api/second ` ` service2 have routes: - service2/api/third - service2/api/fourth ` So is possible to be able to access this services from same host,

With jwilder nginx-proxy, how to proxypass a subdirectory url to a specific container?

最后都变了- 提交于 2019-12-09 18:33:30
问题 I use jwilder/nginx-proxy to make a reverse proxy. I try to redirect http://localhost:8000/api to a specific php service. The directory structure: . +-- docker-compose.yml +-- nginx +-- nodejs | +-- index.js | +-- … +-- php | +-- api docker-compose.yml: version: "3.1" services: nginx-proxy: image: jwilder/nginx-proxy:alpine ports: - "8000:80" volumes: - ./php:/srv/www - /var/run/docker.sock:/tmp/docker.sock:ro nodejs: image: node:alpine environment: - NODE_ENV=production - VIRTUAL_HOST