Web App Deployment with docker, Nginx and SSL
FROM ubuntu:18.04
RUN apt update -y \
package main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"net" | |
"strings" | |
) | |
func main() { |
Obtain an SSL certificate, https://zerossl.com/ is an option.
Get the following 3 files
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.
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.
A simple Nginx Load Balancer implemented with 3 Nginx docker containers.
Browser allows you to run JavaScript by clicking on a bookmark prefilled with JS code.
Simply Create a new bookmark, give it any name, and input the js code in a special format in the URL input box.
javascript: var v = v = document.querySelector("video"); var t = prompt('Set the playback rate'); v.playbackRate = parseFloat(t);;