Skip to content

Instantly share code, notes, and snippets.

View pascalandy's full-sized avatar
:octocat:
Rocking the git

Pascal Andy pascalandy

:octocat:
Rocking the git
View GitHub Profile
@pascalandy
pascalandy / install-infinit.sh
Last active January 17, 2017 22:27
worksession /w Chris and Pascal
# — — — — — — — — — — — — — — — — #
### Installation / https://infinit.sh/get-started/linux
### Export the user we would like to use
export INFINIT_USER=pascal
sudo apt-get -y update
sudo apt-get install -qy fuse
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3D2C3B0B
sudo apt-get install -qy software-properties-common apt-transport-https
echo && echo -e "$PIK_BLUE Install infinit storage" # https://infinit.sh/documentation/docker/volume-plugin
echo "checkpoint 112 $(date +%Y-%m-%d_%Hh%Mm%S)" >> ~/provisionninglogs.txt && echo
APP_DIR=infinit
INSTALL_VERSION=0.7.2
INSTALL_URL="https://storage.googleapis.com/sh_infinit_releases/linux64/Infinit-x86_64-linux_debian_oldstable-gcc4-$INSTALL_VERSION.tbz"
INSTALL_PACKAGE="Infinit-x86_64-linux_debian_oldstable-gcc4-$INSTALL_VERSION"
# /usr/local/bin/$DIRECTORY_NAME/bin
See below
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
# Generated from https://repogen.simplylinux.ch/generate.php
# Updated this: 2017-01-11_12h07
###### Ubuntu Main Repos
deb http://fr.archive.ubuntu.com/ubuntu/ xenial main universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial main universe
### Installed from:
https://infinit.sh/get-started/linux#linux-tarball-install
### tree
root@N12-PAR1:/bin/infinit# tree
.
├── bin
│   ├── fnetusermount-client
│   ├── fnetusermount-server
│   ├── infinit-acl
#pwg_ID=(10000030 10000031 10000033)
pwg_ID[0]=10000030
pwg_ID[1]=10000031
pwg_ID[2]=10000032
pwg_ID[3]=10000033
# echo ${pwg_ID[*]}
# one two three
# echo ${pwg_ID[2]}
http {
...
# serve Webp images instead of jpg & png.
# only when browser supports it.
map $http_accept $webp_suffix {
default "";
"~*webp" ".webp";
}
@pascalandy
pascalandy / tls.conf
Created January 6, 2017 22:44 — forked from Yinchie/tls.conf
My Ghost blog, NGiNX TLS configuration | X25519 & secp384r1 | RSA & ECDSA
# RSA
ssl_certificate /path/fullchain.pem;
ssl_certificate_key /path/privkey.pem;
# ECDSA
ssl_certificate /path/0001_chain.pem;
ssl_certificate_key /path/itchy.nl.ec.key;
ssl_dhparam /path/dhparam4096.pem;
@pascalandy
pascalandy / proxy.conf
Created January 6, 2017 22:43 — forked from Yinchie/proxy.conf
Nginx proxy config for each location /
proxy_hide_header Server;
proxy_hide_header X-Powered-By;
proxy_hide_header Etag;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;