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
| 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 |
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
| 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() |