forked from deepcrayon/lila-cruft
dns
parent
0e8a3fb909
commit
69fd1e06cd
|
@ -63,23 +63,29 @@ that lichess.org uses.
|
|||
You will also need a domain and someone providing domain name service (DNS).
|
||||
OVH provides this service (presumably?) or I recommend Njalla.
|
||||
|
||||
|
||||
## Register DNS
|
||||
Since it takes awhile to spread across the Internet, it is best to first
|
||||
register your domain so that process can happen in the background while
|
||||
you are setting up the server.
|
||||
|
||||
For this example, we'll use the domain `mychestserver.org`.
|
||||
For this example, we'll use the domain `mychestserver.org` with the final
|
||||
example server URL being:
|
||||
|
||||
* https://www.mychestserver.org
|
||||
|
||||
Go to your registrar, and register your domain, such as:
|
||||
|
||||
* https://njal.la/
|
||||
|
||||
|
||||
## Register at ISP
|
||||
Go to OVH (or ISP of your choice) and create an account to host your server.
|
||||
OVH may have regional websites as well:
|
||||
|
||||
* https://ovh.com/
|
||||
|
||||
|
||||
## Set up Workstation SSH Keys
|
||||
To connect to the server, you will need SSH keys. They'll be needed at time
|
||||
of server creation, so we'll make them now. This is an example how to create
|
||||
|
@ -117,13 +123,14 @@ The key's randomart image is:
|
|||
+----[SHA256]-----+
|
||||
```
|
||||
|
||||
|
||||
## Upload SSH key to ISP
|
||||
Take SSH the key you just created above and upload it to OVH.
|
||||
Go to `Public Cloud`, then near the bottom left column, under
|
||||
`Project Management` click `SSH Keys`.
|
||||
Under the new `SSH Keys` window, click `Add and SSH Key` button.
|
||||
Paste the PUBLIC key created above into the `Key` section of the
|
||||
`Add an SSH key` popup window.
|
||||
Paste the PUBLIC key created above, ending with `.pub` extension,
|
||||
into the `Key` section of the `Add an SSH key` popup window.
|
||||
|
||||
Take this output and paste into that form in the browser:
|
||||
|
||||
|
@ -142,6 +149,7 @@ In the `Name` field, enter `mychestkey`.
|
|||
|
||||
Click `Add` to save the key at OVH. You should now see it in the list.
|
||||
|
||||
|
||||
## Create Virtual Machine at ISP
|
||||
OVH sells dedicated "bare metal" servers called the `Bare Metal Cloud`.
|
||||
They also sell virtual machine instances under the `Public Cloud`.
|
||||
|
@ -178,13 +186,60 @@ Click `Next`.
|
|||
`Hourly` at $0.03886/hour. Click `Create an instance` to create the
|
||||
virtual computer, which also starts billing.
|
||||
|
||||
* OVH will say `Launching Instance` and a few minutes later, your server
|
||||
should be ready and in `Activated` status when viewed under the `Instances`
|
||||
tab under `Public Cloud`.
|
||||
|
||||
|
||||
## Forward DNS Configuration
|
||||
Set up forward DNS with the new IP address OVH gave you for your
|
||||
instance. Look at the `Public IP` of your new server `Activated`
|
||||
server instance. In this example, it is `147.135.193.212`. That is the
|
||||
network address of your new server. We want to add it to DNS, so add
|
||||
it to OVH (?) or Njalla's records. For this example, this URL was used:
|
||||
|
||||
* https://njal.la/domains/mychestserver.org/
|
||||
|
||||
Click `Manage` for the domain, then `+ Add Record`.
|
||||
|
||||
* `Type`: Use `A` record.
|
||||
|
||||
* `Name`: Use `www`.
|
||||
|
||||
* `IPv4 Address`: Use the `Public IP` OVH gave you for your instance. In
|
||||
this example, `147.135.193.212`.
|
||||
|
||||
* `TTL`: Lets do something short for now, use `5m`. Click `Add`.
|
||||
|
||||
That will take anywhere from a few seconds to an hour to be picked up by
|
||||
nameservers around the world. It is best if you *don't` query it for now
|
||||
(wait ~15+ minutes) or servers may cache a negative answer, which you'll
|
||||
have to outwait.
|
||||
|
||||
|
||||
## Reverse DNS Configuration
|
||||
Set up reverse DNS with the new IP address OVH gave you for your
|
||||
instance. Look at the `Public IP` of your new server `Activated`
|
||||
server instance. In this example, it is `147.135.193.212`.
|
||||
|
||||
In the OVH `Dashboard` under your `Instances`, click on your instance,
|
||||
such as the example `mychestserver`. On the right hand side under
|
||||
`Networks` in the `IPv4` section there is a button with three dots.
|
||||
Click it and select `Change reverse DNS`. Find your `Public IP` address
|
||||
in the list, our example `147.135.193.212`. In the `Reverse DNS`
|
||||
column, click the edit pencil box icon. Enter your full domain name,
|
||||
such as our example `www.mychestserver.org` and click the check mark
|
||||
to save it.
|
||||
|
||||
|
||||
## Set up SSH on Workstation
|
||||
Back on your workstation, set up your SSH configuration with the key
|
||||
you created and the new
|
||||
|
||||
# Installation
|
||||
|
||||
# Configuration
|
||||
|
||||
## DNS Configuration
|
||||
Set up forward & reverse DNS.
|
||||
|
||||
# Usage
|
||||
|
||||
# Lila
|
||||
|
|
Loading…
Reference in New Issue