From 78fef17a6bf30f2d2b8d5daf033cc0e3c3d507ca Mon Sep 17 00:00:00 2001 From: talksik Date: Mon, 14 Aug 2023 18:06:05 -0700 Subject: [PATCH] getting rid of rancher from nginx network as could be impacting cluster creation --- docker-compose.yaml | 5 +++-- nginx.conf | 29 ----------------------------- 2 files changed, 3 insertions(+), 31 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index f569d0f..07ab7e7 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -34,6 +34,7 @@ services: image: rancher/rancher:latest restart: unless-stopped container_name: rancher + ports: + - 2000:80 + - 2001:443 privileged: true - networks: - - nginx diff --git a/nginx.conf b/nginx.conf index 1b4b651..1f8bd1d 100644 --- a/nginx.conf +++ b/nginx.conf @@ -68,35 +68,6 @@ http { } } - server { - listen 80; - server_name rancher.flowy.live; - - location / { - proxy_pass http://rancher:80; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - } - server { - listen 443 ssl; - server_name rancher.flowy.live; - - # RSA certificate - ssl_certificate /etc/letsencrypt/live/flowy.live/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/flowy.live/privkey.pem; # managed by Certbot - - location / { - proxy_pass https://rancher; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - } - # k8s api: passthrough grpc/tcp # server { # listen 80 http2;