Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Boilerplate configuration for nginx and certbot with docker-compose

Notifications You must be signed in to change notification settings

devbookhq/orchestrator-proxy

 
 

Repository files navigation

Reverse Proxy for Orchestrator Sessions

Usually, we use GCP's Load Balancer to set up SSL and domains for our servers. Unfortunately, GCP doesn't allow wildcard domains and we need URLs like *.o.usedevbook.com for our Orchestrator sessions for running templates.

We are using this nginx + Let's Encrypt boilerplate to deploy our own reverse proxy for the Orchestrator server.

Installation

  1. Install docker-compose.

  2. Clone this repository: git clone https://github.com/wmnnd/nginx-certbot.git .

  3. Run the init script:

🚨 IMPORTANT 🚨: Make sure to change the variable staging to 1 in the init-letsencrypt.sh if you aren't in the production environment

./init-letsencrypt.sh
  1. Run the server:
docker-compose up

Deployment

There isn't a good automated way to deploy this. The current way of deployment is fully manual:

  1. SSH to GCE instance
  2. Clone repo
  3. Run sudo ./init-letsencrypt.sh (don't generate new SSL certs if not needed)
  4. Start proxy in the background sudo docker-compose up &

About

Boilerplate configuration for nginx and certbot with docker-compose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 69.9%
  • JavaScript 30.1%