Web App Deployment with docker, Nginx and SSL
FROM ubuntu:18.04
RUN apt update -y \
Obtain an SSL certificate, https://zerossl.com/ is an option.
Get the following 3 files
package main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"net" | |
"strings" | |
) | |
func main() { |
Install openvpn3 from this website.
If you look at the man page of openvpn3, there are 2 main concepts:
Suppose you have a configuration file called vpn.ovpn that’s connecting to a server in New York.
Device Flow is for apps that cannot access a browser, such as a CLI app.
app.py is an python CLI console app that demonstrates how to do Device Flow OAuth.
To run it, you have to register a GitHub OAuth App.
This repo contains a simple web app demonstrating how GitHub OAuth App work in Web Flow.
The web server is written in Flask.
Make sure flask server is installed.
A simple Nginx Load Balancer implemented with 3 Nginx docker containers.