-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,7 @@ | ||
# io.js Website Setup | ||
# Node.js Website Setup | ||
|
||
This directory contains an Ansible playbook to set up the iojs.org website from a fresh Ubuntu host (Upstart configuration assumes 14.04 or similar). | ||
Intended to mirror the configuration of the nodejs.org primary web server. | ||
|
||
This setup listens to the [iojs/website](https://github.com/iojs/website) repository for new commits on the *master* branch. The changes are pulled locally and copied (sans the *.git* directory) into a publicly served directory. | ||
|
||
The inventory uses the host `iojs-www`, the easiest way to link this is to add it to your *~/.ssh/config*, something like: | ||
|
||
```text | ||
Host iojs-www | ||
HostName 104.236.136.193 | ||
User root | ||
``` | ||
|
||
This setup assumes a GitHub Webhook is configured ([here](https://github.com/iojs/website/settings/hooks)) to point to port `9999` of the server with the path `/webhook` plus an additional secret. | ||
|
||
Note that the *host_vars/iojs-www* file needs to be created, the *host_vars/iojs-www.tmpl* file can be used as a template and simply add the GitHub Webhook secret. | ||
|
||
An SSL certificate should also be provided along with a key. The certificate, along with chain, should be placed in *resources/iojs_chained.crt* and the key in *resources/iojs.key*. | ||
|
||
To set up the web server, run: | ||
|
||
```text | ||
$ ansible-playbook -i ../ansible-inventory ansible-playbook.yaml | ||
``` | ||
* Not actively tested against the live server so may not be idempotent. | ||
* The server contains significant state that it is essential to the live functioning of nodejs.org so this Ansible setup can't be used to setup a new site and it mirror the current nodejs.org state. | ||
* Not integrated with the existing Build WG Ansible configuration (hence "standalone") |