Skip to content

Instantly share code, notes, and snippets.

View fmdlc's full-sized avatar
🧟
Zombie processes haunting the computer

Facu de la Cruz fmdlc

🧟
Zombie processes haunting the computer
View GitHub Profile
@fmdlc
fmdlc / nginx.conf
Created February 21, 2016 00:33 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@fmdlc
fmdlc / gist:1b26a0c936775bae5bc4d4e79cec8208
Created October 31, 2020 23:25
Install K3s with ETCD backend
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Initial node
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
sudo curl -sfL https://get.k3s.io | \
INSTALL_K3S_CHANNEL=testing \
K3S_KUBECONFIG_MODE=644 sh -s - --cluster-init
- The initial token can be found in: /var/lib/rancher/k3s/server/node-token
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@fmdlc
fmdlc / Dockerfile
Created October 31, 2020 23:55
Dockerfile build multistage
### STAGE 1: clone ###
FROM node:12.16.3-alpine3.9 AS clone
LABEL mantainer="Facu de la Cruz <[email protected]>"
LABEL type="builder"
WORKDIR /usr/src/frontend
# We need to install those packages to use npm
# A few repositories are cloned by using Git over SSH