Skip to content

Instantly share code, notes, and snippets.

View Elemnir's full-sized avatar

Adam Howard Elemnir

View GitHub Profile
@Elemnir
Elemnir / host_vars.yml
Last active November 10, 2017 21:11
Ansible for Deploying Nginx as a proxy server to other services, secured by Certbot
nginx_proxy_sites:
- domain_name: www.example.com
enabled: true
unit_name: example
repo: https://github.com/user/project.git
source_path: /data/www/www.example.com
internal_address: http://127.0.0.1:8080
aliases:
- www.example.com
- example.com
@Elemnir
Elemnir / Config_example
Created March 15, 2015 02:02
Example config usage
class Config(object):
def __init__(self, param1=None, param2=None):
self.config1 = int(param1) if param1 else 5
self.config2 = str(param2) if param2 else 'hello'
cfg = Config()