Skip to content

Running rancher behind proxy at admin.example.com? #49

@aschrijver

Description

@aschrijver

Hi @adi90x
Thanks a lot for this repo!! It looks like this is exactly what I need to setup a rancher CI/CD environment!
But I have a question regarding setup, some things unclear in README..

I have an AWS EC2 instance running RancherOS and want to setup the following:

  • nginx reverse proxy in front of all containers
  • static website (nginx redirect to gh-pages) with SSL termination, accessible at https://example.com
  • rancher server running on port 8080, accessible at https://admin.example.com
  • gitlab server running on port 8090, accessible at https://develop.example.com

Previously I manually setup nginx config and Letsencrypt certificates and accidentally bricked my docker installation, forcing me to recreate the instance entirely.

Going from the README I deduce I have to take following steps:

  • Install/run proxy: From the AWS console run $ docker run -d -p 80:80 adi90x/rancher-active-proxy
  • Create website redirect: Create an nginx config for the redirect to gh-pages on Github named example.com_server and copy it to /etc/nginx/vhost.d on the instance --> but this server block is just a redirect, without a container!
  • Install/run rancher: From the AWS console run docker run -d --restart=unless-stopped -p 8080:8080 --name=rancher-server -l rap.host=admin.example.com -l rap.port=8080 -l rap.le_host=admin.example.com -l rap.le_email=foo@example.com -l rap.proto=https -l io.rancher.container.pull_image=always rancher/server

Presumably now I can use the Rancher UI to configure the gitlab stack and services, provided I add the proper labels using same UI.

Could you please verify if these steps are correct? I would be very thankful :)

PS. While I was at it I took the liberty to improve the readme a bit: #50

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions