Created
August 27, 2012 14:10
-
-
Save vitalie/3488768 to your computer and use it in GitHub Desktop.
LuaDNS - dotCloud Configuration Example (Lua)
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
| -- File: example.com.lua | |
| -- Variable _a is replaced with zone name | |
| -- _a = example.com | |
| -- Call dotcloud template with domain name as parameter | |
| dotcloud(_a) |
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
| function dotcloud(domain) | |
| -- Create CNAME for www.mydomain.com | |
| cname(concat("www", domain), "gateway.dotcloud.com") | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment