Skip to content

Instantly share code, notes, and snippets.

sudo apt-get update
sudo apt-get install letsencrypt -t jessie-backports
sudo nano /etc/apt/sources.list
# Add
deb http://ftp.debian.org/debian jessie-backports main
sudo chmod +x /lib/systemd/system/nginx.service
sudo systemctl --system daemon-reload
sudo systemctl enable nginx
sudo systemctl start nginx
sudo nano /lib/systemd/system/nginx.service
@ishults
ishults / default
Last active October 25, 2016 20:37
sudo nano /etc/nginx/sites-enabled/default
# Add
server {
listen 80;
server_name example.com; # Your site
proxy_buffering off;
location / {
sudo htpasswd -c /etc/nginx/.htpasswd
sudo apt-get install nginx apache2-utils
autocutsel -fork
# Be sure to put this above: /etc/X11/Xsession
sudo apt-get install autocutsel
# Compiled by Igor Shults
# As of version 0.17.x
####################################################
# #
# Basic Settings #
# #
####################################################
### Global configuration ###