Skip to content

Instantly share code, notes, and snippets.

View Kenny201's full-sized avatar
🎯
Focusing

Vitalik Kenny201

🎯
Focusing
View GitHub Profile
@Kenny201
Kenny201 / localssl.md
Created January 19, 2024 20:18 — forked from r0lodex/localssl.md
Setting Up Local SSL

Automatic

Updated 24-05-2020

NAME=$1

mkdir $NAME
cd $NAME

# Generate private key
@Kenny201
Kenny201 / nginx-brotli-alpine-docker
Created December 23, 2023 00:23 — forked from antonioabelgc/nginx-brotli-alpine-docker
Dockerfile that builds an Alpine-based Nginx image with the Brotli compression module
ARG NGINX_VERSION=1.25.2
FROM alpine:3.18 as builder
ARG NGINX_VERSION
WORKDIR /build
RUN apk update && apk upgrade
RUN apk add pcre pcre-dev zlib zlib-dev openssl libressl-dev wget git gcc brotli-dev g++ make
RUN wget https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz && tar -zxf nginx-$NGINX_VERSION.tar.gz
RUN git clone https://github.com/google/ngx_brotli && cd ngx_brotli && git submodule update --init --recursive
RUN cd nginx-$NGINX_VERSION && ./configure --with-compat --add-dynamic-module=../ngx_brotli && make modules