This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream targetwebservice { | |
server host2.example.com:8000 weight=1 fail_timeout=300s; | |
} | |
#server { | |
# listen 8081; | |
# server_name servername.exameple.com; | |
# add_header Strict-Transport-Security max-age=2592000; | |
# rewrite ^/.*$ https://servername.exameple.com/ permanent; | |
#} | |
server { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://redd.it/1xizt0 Gentoo? | |
strebl.ch/21ai Ajenti | |
strebl.ch/1u0w Vesta Control Panel | |
strebl.ch/to6 cPanel | |
strebl.ch/1usg Choosing control panel management | |
strebl.ch/qrr ServerPilot | |
strebl.ch/1dz6 ServerPilot Experience | |
strebl.ch/ntg PuPHPet - A simple GUI to set up virtual machines for Web development. | |
strebl.ch/1ucq Phansible provides an easy-to-use interface to generate Ansible provisionings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen *:443 ssl; | |
listen *:80; | |
ssl_certificate /etc/self-signed-ssl/cert.crt; | |
ssl_certificate_key /etc/self-signed-ssl/cert.key; | |
server_name FQDN; | |
access_log /var/log/nginx/ajenti-web-panel.access.log; | |
error_log /var/log/nginx/ajenti-web-panel.error.log; |
- use Ubuntu 14.04 (check with
lsb_release -a
) - set up VPS like this
- set up Nginx - (tutorial) - if you use Digital ocean, there are also many preconfigured images available that already have Nginx configured, e.g., I used the Django+PostgreSQL image, which has Nginx configured as reverse proxy in front of Gunicorn
- further setup (optional, I actually didn't do this)
- lets encrypt setup
- make backup of
/etc/letsencrypt
- the current certificate, private key etc then are in
/etc/letsencrypt/live/your_domain_name
- for auto renewal: when using Nginx as a reverse proxy, i.e. when you do not have a tradition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Copyright (c) 2016 Katsuya SAITO | |
# This software is released under the MIT License. | |
# http://opensource.org/licenses/mit-license.php | |
# | |
# @(#) letsencrypt_cert_autoupdate_webroot.sh ver.0.1.0 2016.01.31 | |
# | |
# Usage: | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
web_service='nginx' | |
config_file=$1 | |
le_path='/opt/letsencrypt' | |
exp_limit=30; | |
if [ $# -eq 0 ]; then | |
echo "Please specifie the path of the config file" |
- http://www.metalsmith.io
- https://github.com/pjeby/gulpsmith
- WordPress (slow and expensive to host, but unfriendly) or a Static site (fast, cheap to host, but technical)
- Metalsmith offer a file-tree-based approach
- http://stackoverflow.com/questions/23227248/is-there-some-gulp-plugin-that-lets-it-perform-the-function-of-a-static-site-gen