Guillermo Rauch
5fd5802880
Improved agent ( #240 )
* improves agent
- reverts spdy for now (causing issues with alias)
- sets up an agent pool of 4 max sockets with a 10s keep alive timeout
- better error handling and re-initialization
* improves agent
- reverts spdy for now (causing issues with alias)
- sets up an agent pool of 4 max sockets with a 10s keep alive timeout
- better error handling and re-initialization
8 years ago
Jarmo Isotalo
059918e7ee
Remove babel as dependecy ( #209 )
* Remove babel as a dependency
* Migrate from import foo from foo to const foo = require('foo')
* Update module.exports
* Update commander syntax
* Update pkg config and fix stuff
* Make XO happy
* Fix path in tests
* Fix typo
* Fix cleanup
* Debug pkg
* Fix pkg
* Fix process.argv for subcommands
* Run with --harmony-async-await when supported thx igor for help with this trick :D
* Use bash
* Set engines.node in package.json
8 years ago
Olli Vanhoja
29066338d8
Fix now alias on new domains ( #207 )
Bail if no records are found for a domain to allow adding the records.
now alias derp domain.com -d
> [debug] Checking for updates.
> [debug] Up to date (1.0.0).
> [debug] /list: 583.880ms
> [debug] matched deployment derp by url derp.now.sh
> domain.com is a custom domain.
> Verifying the DNS settings for domain.com (see https://zeit.world for help)
> [debug] #1 GET /domains/domain.com: 271.741ms
> [debug] Found domain domain.com with verified:true
> [debug] No records found for "domain.com"
> Verification OK!
8 years ago
Luke Edwards
9a37e9deb2
insert newline into alias-success msg ( #203 )
8 years ago
Luke Edwards
c584f42791
copy alias to clipboard & show message ( #201 )
* copy alias to clipboard & show message
* ensure status output if not ttys or cant copy
8 years ago
Leo Lamprecht
cf5b9ad125
Replace publicsuffixlist with psl
8 years ago
Olli Vanhoja
3a8f11b1ba
alias set --debug: Only print nameservers if we fetched them ( #166 )
8 years ago
Olli Vanhoja
2fdfbbdc22
Improve client side domain verification ( #161 )
No need to check nameservers if the domain is already known and
verified by now.
8 years ago
Leo Lamprecht
e12c4212c9
Sprinkled a few newlines on there
8 years ago
Olli Vanhoja
1fee62c596
Support domain name verification
8 years ago
Jarmo Isotalo
802e59f680
Improve error handling for alias creation, fixes #156
8 years ago
Jarmo Isotalo
4de1c69b6a
Improve error handling when issuing cert fails ( #154 )
Fix `now certs ls` error when showing expiration date
Improve logging for when alias creation fails
8 years ago
Olli Vanhoja
8c62269567
Fix DNS verification on 'now alias' ( #106 )
8 years ago
Leo Lamprecht
3979d8472a
Fixed even more XO issues
8 years ago
Olli Vanhoja
298591af81
now-alias: Renew expired cert automatically
8 years ago
Olli Vanhoja
4db4353d5d
now certs management
* Move cert handling to index.js
* Add 'now certs' commands for certificate management
8 years ago
Guillermo Rauch
ecc112a6dd
workaround for node-spdy bug
8 years ago
Guillermo Rauch
114da38c25
alias: improve error
8 years ago
Olli Vanhoja
ea6f682ea4
Add a missing await
8 years ago
Olli Vanhoja
75f1cef880
Always register the domain for the user before trying to use it
8 years ago
Olli Vanhoja
74adb7b613
Don't use domain-regex
It's broken, it doesn't match what you think it will match.
8 years ago
Olli Vanhoja
04003b207b
Show a proper error message for protected domain names
9 years ago
Guillermo Rauch
38d1e4d32f
alias: handle `ESERVFAIL`
9 years ago
Guillermo Rauch
e9bc5ac1c1
alias: setup * and none records automatically
9 years ago
Guillermo Rauch
eb04657b2f
Add zeit world (wip) ( #67 )
* alias: clean up the alias (trailing and leading dots)
* alias: improve domain validation and implement zeit.world
* is-zeit-world: detect valid zeit.world nameservers
* package: add domain-regex dep
* now-alias: fix edge case with older aliases or removed deployments
* alias: move listing aliases and retrying to `index`
* index: generalize retrying and alias listing
* alias: remove `retry` dep
* now-remove: print out alias warning
* typo
* now-alias: prevent double lookup
* now: add domain / domains command
* now-deploy: document `domain`
* agent: allow for tls-less, agent-less requests while testing
* is-zeit-world: fix nameserver typo
* dns: as-promised
* now-alias: fix `rm` table
* now-alias: no longer admit argument after `alias ls`
@rase- please verify this, but I think it was overkill?
* admit "aliases" as an alternative to alias
* make domain name resolution, creation and verification reusable
* index: add nameserver discover, domain setup functions (reused between alias and domains)
* now-domains: add command
* domains: commands
* package: bump eslint
* now-alias: simplify sort
* now-domains: sort list
* now-domains: improve deletion and output of empty elements
* errors: improve output
* domains: add more debug output
* domains: extra logging
* errors: improve logging
* now-remove: improve `now rm` error handling
* index: more reasonable retrying
* alias: support empty dns configurations
* dns: remove ns fn
* alias: improve post-dns-editing verification
* index: remove unneeded dns lookup
* index: implement new `getNameservers`
* index: customizable retries
* alias: improve error
* improve error handling and cert retrying
* customizable retries
* alias: better error handling
* alias: display both error messages
* better error handling
* improve error handling for certificate verification errors
* alias: set up a `*` CNAME to simplify further aliases
* alias: fewer retries for certs, more spaced out (prevent rate limiting issues)
* alias: ultimate error handling
* add whois fallback
* adjust timer labels for whois fallback
* index: whois fallback also upon 500 errors
* alias: fix error message
* fix duplicate aliases declaration
9 years ago
Guillermo Rauch
290d1ffb93
alias: remove `retry` dep
9 years ago
Guillermo Rauch
02ea07cf1a
alias: move listing aliases and retrying to `index`
9 years ago
Guillermo Rauch
57909cba11
alias: certificate provisioning
9 years ago
Guillermo Rauch
ae320f56db
/certs > /now/certs
9 years ago
Guillermo Rauch
547a93127a
alias: handle 304
9 years ago
Guillermo Rauch
6172678a90
alias: improve out
9 years ago
Tony Kovanen
196692a5c5
Add confirmation to `alias rm`
9 years ago
Guillermo Rauch
7bcea8e19d
alias: handle 409
9 years ago
Guillermo Rauch
77d10deddb
add confirmation for removal
9 years ago
Guillermo Rauch
b788d7118b
alias: tweak error
9 years ago
Guillermo Rauch
7d9ffcb45b
tweak error messages
9 years ago
Guillermo Rauch
1b5c88eedb
alias: verify ownership first for custom domains
9 years ago
Guillermo Rauch
b1f754b437
alias: improve success output
9 years ago
Tony Kovanen
4935563d45
Fix `alias rm` bail
9 years ago
Tony Kovanen
794e89439f
Thow error if specified `ls` selector not found
9 years ago
Tony Kovanen
cf4b176ec9
Accept alias name in `now alias rm`, add retries
9 years ago
Tony Kovanen
32ad62d57c
`now alias ls`: accept deployment url
9 years ago
Tony Kovanen
21bb73b3c8
Basic `alias rm`
9 years ago
Tony Kovanen
4aab8c6c8e
`alias ls` logic
9 years ago
Tony Kovanen
47f797bd4a
Exit early for `304`
9 years ago
Tony Kovanen
2c030e2888
Fix lint
9 years ago
Tony Kovanen
ad6c9d5373
Fix success output
9 years ago
Tony Kovanen
887f3e39b9
Await all fetches
9 years ago
Guillermo Rauch
f5c5309bc8
alias: complete `set`
9 years ago
Guillermo Rauch
dbf56429bf
alias: match hostname prefix without `.now.sh`
9 years ago