Skip to content

Instantly share code, notes, and snippets.

View danclough's full-sized avatar

Dan Clough danclough

View GitHub Profile
@danclough
danclough / gist:ee0b25c285cc2fc280e5d2d3a6f855d7
Created October 22, 2021 21:11
Smallstep Certificate Renewal systemd unit file
#!/bin/bash
## UPDATE THESE AS NEEDED
# This is the path to your certificates
CERT_DIR="/etc/mysql/certificates"
# This is the name of the systemd service it's renewing for - needed for dependency definition
SERVICE_NAME="mariadb"
# This is the command that step-cli should run after successfully renewing
CYCLE_COMMAND="/usr/bin/mysqladmin flush-ssl"
@danclough
danclough / docker-compose.yaml
Created October 21, 2021 02:31
Example docker-compose.yaml file for Traefik
version: '2.4'
services:
traefik:
image: traefik
container_name: traefik
cpu_count: 2
mem_limit: 1g
ulimits:
nproc: 128
nofile: