Skip to content

Instantly share code, notes, and snippets.

@Zewy
Zewy / unprivileged_caddy.sh
Created April 10, 2017 09:33 — forked from kennwhite/unprivileged_caddy.sh
Run caddy server as unprivileged user, includes Hugo option
#!/bin/bash
# *As root*
cd ~
killall caddy
rm -rf ~/caddy
mkdir caddy && cd caddy
curl -SL 'https://caddyserver.com/download/build?os=linux&arch=amd64&features=hugo' > caddy.tgz
tar xzf caddy.tgz
@Zewy
Zewy / compile-nginx.sh
Last active July 22, 2019 01:55 — forked from v0ctor/compile-nginx.md
Compile Nginx with OpenSSL on CentOS 7 to support ALPN (and therefore HTTP/2) and ngx_pagespeed
#!/bin/bash
## Software versions (you can edit this if there are newer versions)
#NPS_VERSION="1.12.34.2" # 2016-12-15 (Beta)
NPS_VERSION="1.11.33.4" # 2016-10-03 (Stable)
NGINX_VERSION="1.11.9" # 2017-01-24 (mainline)
OPENSSL_VERSION="1.1.0d" # 2017-01-26 (stable)
PCRE_VERSION="8.39" # 2016-06-14 (old stable, latest supported by Nginx)
ZLIB_VERSION="1.2.11" # 2017-01-15 (stable)