Skip to content

Commit 8145bf8

Browse files
committed
Added domains: g0v.ca, c4nada.ca, t0ronto.ca. Added redirects via @ronnywang infra.
1 parent 05116e0 commit 8145bf8

File tree

7 files changed

+91
-7
lines changed

7 files changed

+91
-7
lines changed

README.md

+19-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# g0v.network domains
22

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

5-
Changing or adding DNS records in `main` branach of this repository with update
5+
The following damains can be managed here:
6+
- g0v.network
7+
- g0v.ca
8+
- c4nada.ca
9+
- t0ronto.ca
10+
11+
Changing or adding DNS records in `main` branch of this repository with update
612
the actual domain records.
713

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

3844
### Delete an existing subdomain
3945

40-
Delete a file or a specific record type within a file. Our automation will sync this deletion when it runs.
46+
Delete a file or a specific record type within a file. Our automation will sync
47+
this deletion when it runs.
4148

4249
### Modify an existing subdomain
4350

44-
Modify an [existing file][existing]. Our automation will sync this change when it runs.
51+
Modify an [existing file][existing]. Our automation will sync this change when
52+
it runs.
4553

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

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

5260
- Python 3
5361
- Cloudflare account
54-
- Cloudflare site: `g0v.network` (can "fake it", no need to actually have access to it)
62+
- Cloudflare sites: (can "fake it"; no need to actually have access to it)
63+
- `g0v.network`
64+
- `g0v.ca`
65+
- `c4nada.ca`
66+
- `t0ronto.ca`
5567
- Cloudflare API token (see instructions in `sample.env`)
5668

5769
```
@@ -79,7 +91,8 @@ pipenv run octodns-sync --config-file config.yaml --doit
7991

8092
## :muscle: Contributing
8193

82-
Please open an issue or pull request in order to apply for a new subdomain.
94+
Please open an issue or pull request in order to create/update/delete any
95+
subdomains.
8396

8497
## :copyright: License
8598

c4nada.ca./c4nada.ca.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'':
3+
- type: TXT
4+
values:
5+
# Who has admin for g0v.ca domain
6+
- admin=patcon
7+
# Used for redirect service below
8+
- 301 https://g0v.tw/
9+
- type: A
10+
# See: https://301.ronny.tw/
11+
value: 52.69.187.52
12+
octodns:
13+
cloudflare:
14+
proxied: true
15+
metdata:
16+
repository: https://github.com/ronnywang/301-service
17+
maintainer:
18+
- ronnywang

config.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,18 @@ zones:
2020
- config-files
2121
targets:
2222
- cloudflare
23+
g0v.ca.:
24+
sources:
25+
- config-files
26+
targets:
27+
- cloudflare
28+
t0ronto.ca.:
29+
sources:
30+
- config-files
31+
targets:
32+
- cloudflare
33+
c4nada.ca.:
34+
sources:
35+
- config-files
36+
targets:
37+
- cloudflare

g0v.ca./g0v.ca.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'':
3+
- type: TXT
4+
values:
5+
# Who has admin for g0v.ca domain
6+
- admin=patcon
7+
# Used for redirect service below
8+
- 301 https://g0v.tw/
9+
- type: A
10+
# See: https://301.ronny.tw/
11+
value: 52.69.187.52
12+
octodns:
13+
cloudflare:
14+
proxied: true
15+
metdata:
16+
repository: https://github.com/ronnywang/301-service
17+
maintainer:
18+
- ronnywang

g0v.network./g0v.network.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
'':
3+
- type: TXT
4+
value: admin=patcon
35
- type: A
46
value: 162.247.75.222
57
octodns:

sample.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# See: https://support.cloudflare.com/hc/en-us/articles/200167836-Managing-API-Tokens-and-Keys
22
# Create a token from the template: "Edit zone DNS"
3-
# We advise scoping it only specific domains you wish to manage via this automation.
3+
# We advise scoping it only the specific domains you wish to manage via this automation.
44
CLOUDFLARE_API_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

t0ronto.ca./t0ronto.ca.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'':
3+
- type: TXT
4+
values:
5+
# Who has admin for g0v.ca domain
6+
- admin=patcon
7+
# Used for redirect service below
8+
- 301 https://g0v.tw/
9+
- type: A
10+
# See: https://301.ronny.tw/
11+
value: 52.69.187.52
12+
octodns:
13+
cloudflare:
14+
proxied: true
15+
metdata:
16+
repository: https://github.com/ronnywang/301-service
17+
maintainer:
18+
- ronnywang

0 commit comments

Comments
 (0)