Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.
/ reverse-proxy Public archive

Student Robotics Reverse Proxy

License

Notifications You must be signed in to change notification settings

srobo/reverse-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Student Robotics Website Reverse Proxy

Build status

An attempt to separate out the reverse proxy from the website repo. This ended up never being used, having been supplanted by the srobo-nginx role within https://github.com/srobo/ansible/.

Getting Started

  1. Install Docker

  2. Fetch the latest base image:

    $ docker pull nginx
  3. Build the image:

    $ docker build --tag srobo/reverse-proxy .
  4. Start the container:

    $ docker run --rm -p 80:80 --name srobo srobo/reverse-proxy

    Note: You can change the bound ports so they don't conflict with your local host's configuration. For example, you might want to replace -p 80:80 with -p 8080:80.

  5. Visit http://localhost in a browser (adjust the port as needed if you edited it), and confirm that you see a copy of the SR website (also check that you didn't get redirect to the real one!)

  6. Make your changes to the nginx.conf

  7. Get those changes into the container and reload nginx:

    $ docker cp nginx.conf srobo:/etc/nginx/nginx.conf && docker kill -s HUP srobo
  8. Refresh your browser and bask in the glory of your changes

Making changes

When you've made a change, either push it to a forked repository, or to a feature branch, and raise a pull request.

Deployment

Note: full deployment instructions are separate.

The master branch of repo is built into a Docker image by Circle CI which is then deployed manually into a Kubernetes hosted on DigitalOcean.