Skip to content

Commit

Permalink
Added domains: g0v.ca, c4nada.ca, t0ronto.ca. Added redirects via @ro…
Browse files Browse the repository at this point in the history
…nnywang infra.
  • Loading branch information
patcon committed Feb 7, 2021
1 parent 05116e0 commit 8145bf8
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 7 deletions.
25 changes: 19 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# g0v.network domains

For automating management of the `g0v.network` domain via config files.
For automating management of some g0v-related domains via config files.

Changing or adding DNS records in `main` branach of this repository with update
The following damains can be managed here:
- g0v.network
- g0v.ca
- c4nada.ca
- t0ronto.ca

Changing or adding DNS records in `main` branch of this repository with update
the actual domain records.

Inspired by [`g0v/domain`][g0v/domain]
Expand Down Expand Up @@ -37,11 +43,13 @@ see example):

### Delete an existing subdomain

Delete a file or a specific record type within a file. Our automation will sync this deletion when it runs.
Delete a file or a specific record type within a file. Our automation will sync
this deletion when it runs.

### Modify an existing subdomain

Modify an [existing file][existing]. Our automation will sync this change when it runs.
Modify an [existing file][existing]. Our automation will sync this change when
it runs.

[existing]: /g0v.network./g0v.network.yaml

Expand All @@ -51,7 +59,11 @@ To contribute changes to our automation, you'll likely want to be able to run it

- Python 3
- Cloudflare account
- Cloudflare site: `g0v.network` (can "fake it", no need to actually have access to it)
- Cloudflare sites: (can "fake it"; no need to actually have access to it)
- `g0v.network`
- `g0v.ca`
- `c4nada.ca`
- `t0ronto.ca`
- Cloudflare API token (see instructions in `sample.env`)

```
Expand Down Expand Up @@ -79,7 +91,8 @@ pipenv run octodns-sync --config-file config.yaml --doit

## :muscle: Contributing

Please open an issue or pull request in order to apply for a new subdomain.
Please open an issue or pull request in order to create/update/delete any
subdomains.

## :copyright: License

Expand Down
18 changes: 18 additions & 0 deletions c4nada.ca./c4nada.ca.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
'':
- type: TXT
values:
# Who has admin for g0v.ca domain
- admin=patcon
# Used for redirect service below
- 301 https://g0v.tw/
- type: A
# See: https://301.ronny.tw/
value: 52.69.187.52
octodns:
cloudflare:
proxied: true
metdata:
repository: https://github.com/ronnywang/301-service
maintainer:
- ronnywang
15 changes: 15 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,18 @@ zones:
- config-files
targets:
- cloudflare
g0v.ca.:
sources:
- config-files
targets:
- cloudflare
t0ronto.ca.:
sources:
- config-files
targets:
- cloudflare
c4nada.ca.:
sources:
- config-files
targets:
- cloudflare
18 changes: 18 additions & 0 deletions g0v.ca./g0v.ca.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
'':
- type: TXT
values:
# Who has admin for g0v.ca domain
- admin=patcon
# Used for redirect service below
- 301 https://g0v.tw/
- type: A
# See: https://301.ronny.tw/
value: 52.69.187.52
octodns:
cloudflare:
proxied: true
metdata:
repository: https://github.com/ronnywang/301-service
maintainer:
- ronnywang
2 changes: 2 additions & 0 deletions g0v.network./g0v.network.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
'':
- type: TXT
value: admin=patcon
- type: A
value: 162.247.75.222
octodns:
Expand Down
2 changes: 1 addition & 1 deletion sample.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# See: https://support.cloudflare.com/hc/en-us/articles/200167836-Managing-API-Tokens-and-Keys
# Create a token from the template: "Edit zone DNS"
# We advise scoping it only specific domains you wish to manage via this automation.
# We advise scoping it only the specific domains you wish to manage via this automation.
CLOUDFLARE_API_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
18 changes: 18 additions & 0 deletions t0ronto.ca./t0ronto.ca.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
'':
- type: TXT
values:
# Who has admin for g0v.ca domain
- admin=patcon
# Used for redirect service below
- 301 https://g0v.tw/
- type: A
# See: https://301.ronny.tw/
value: 52.69.187.52
octodns:
cloudflare:
proxied: true
metdata:
repository: https://github.com/ronnywang/301-service
maintainer:
- ronnywang

0 comments on commit 8145bf8

Please sign in to comment.