Skip to content

Instantly share code, notes, and snippets.

@reinaldoca
reinaldoca / SSL-nginx-Docker.md
Created July 12, 2022 20:58 — forked from dahlsailrunner/SSL-nginx-Docker.md
SSL with Docker images using nginx as reverse proxy

Docker with SSL and an nginx reverse proxy

Running your ASP.NET Core (or other) application in Docker using SSL should not be an overwhelming task. These steps should do the trick.

Run the following steps from a Linux terminal (I used WSL or WSL2 on Windows from the Windows Terminal).

1. Create a conf file with information about the cert you'll be creating

It should look something like the content below; call it my-site.conf or something like that.

@reinaldoca
reinaldoca / docker-ssl-proxy.md
Created July 12, 2022 15:36 — forked from ykarikos/docker-ssl-proxy.md
Self-signed SSL reverse proxy with Docker

Self-signed SSL reverse proxy with Docker

This is based on the marvellous blog posting by Oliver Zampieri.

This howto is written to create a self signed SSL NginX proxy on MacOS to

  1. Expose proxy at local host port 5001
  2. Connect the port 5001 to port 443 inside Docker
  3. Proxy the port 443 to port 5000 on the host computer

This means that:

@reinaldoca
reinaldoca / .gitlab-ci.yml
Created June 17, 2022 19:53 — forked from t3easy/.gitlab-ci.yml
Build and deploy docker containers with GitLab CI
image: an-image-with-docker-and-docker-compose
variables:
DOCKER_TLS_VERIFY: "1"
DOCKER_CERT_PATH: ".docker"
before_script:
- mkdir -p $DOCKER_CERT_PATH
- echo "$DOCKER_CA" > $DOCKER_CERT_PATH/ca.pem
- echo "$DOCKER_CERT" > $DOCKER_CERT_PATH/cert.pem
@reinaldoca
reinaldoca / configure_k8s.sh
Created June 4, 2022 01:36 — forked from lucashalbert/configure_k8s.sh
Script to install and configure kubernetes on CentOS-7
#######################
# === All Systems === #
#######################
# Ensure system is fully patched
sudo yum -y makecache fast
sudo yum -y update
# Disable swap
sudo swapoff -a
@reinaldoca
reinaldoca / installation.md
Created May 3, 2022 01:49 — forked from Machy8/installation.md
Kubernetes, single node, bare metal cluster installation (Debian)
@reinaldoca
reinaldoca / install-kubernetes-on-buster.sh
Created January 27, 2022 21:49 — forked from BeerOnBeard/install-kubernetes-on-buster.sh
Set up a single-node Kubernetes system on Debian 10 (Bustomer). Use Flannel as the network fabric. Install the Kubernetes dashboard.
#!/bin/bash
set -e;
# Set up a single-node Kubernetes system on Debian 10 (Buster).
# Use Flannel as the network fabric. Install the Kubernetes
# dashboard.
# disable swap
swapoff -a;