Skip to content

Commit e94ac8b

Browse files
committed
Add OGS
1 parent 016efb3 commit e94ac8b

File tree

88 files changed

+3628
-3498
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+3628
-3498
lines changed

errors/cloudflare/error.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name = "CLOUDFLARE_ERROR"
3+
description = "Cloudflare returned an error: {error}"
4+
http_status = 400
5+
---
6+
7+
# Cloudflare Error
8+
9+
An error was returned by a cloudflare API and has been re-routed to this error response.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name = "OPENGB_INVALID_NEON_PROJECT_CONFIG"
3+
description = "Neon project config is invalid: {reason}."
4+
http_status = 400
5+
---
6+
7+
# OpenGB Invalid Neon Project Config
8+
9+
The Neon project config given was invalid. See https://api-docs.neon.tech/reference/updateproject for more info.

fern/definition/cloud/common.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ types:
1313
svc_name:
1414
docs: The name of the service.
1515
type: string
16-
ts:
17-
docs: RFC3339 timestamp.
18-
type: datetime
16+
ts: commons.Timestamp
1917
duration:
2018
docs: Unsigned 64 bit integer.
2119
type: long

fern/definition/cloud/games/games.yml renamed to fern/definition/cloud/games/__package__.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,7 @@ types:
132132
name_id:
133133
docs: >-
134134
**Deprecated**
135-
136-
A human readable short identifier used to references resources.
137-
Different than a `rivet.common#Uuid` because this is intended to be
138-
human readable.
139-
Different than `rivet.common#DisplayName` because this should not
140-
include special
141-
characters and be short.
142-
type: optional<string>
135+
type: optional<commons.Identifier>
143136

144137
ValidateGameResponse:
145138
properties:

fern/definition/cloud/games/namespaces/analytics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ service:
99
path-parameters:
1010
game_id:
1111
type: uuid
12-
1312
namespace_id:
1413
type: uuid
14+
1515
endpoints:
1616
getAnalyticsMatchmakerLive:
1717
path: /matchmaker/live

fern/definition/common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ types:
7777
AccountNumber: integer
7878

7979
Timestamp:
80-
type: string
80+
type: datetime
8181
docs: RFC3339 timestamp
8282

8383
GlobalEventNotification:

fern/definition/group/common.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ types:
5858
docs: A group join request.
5959
properties:
6060
identity: identityCommons.Handle
61-
ts:
62-
docs: RFC3339 timestamp.
63-
type: datetime
61+
ts: commons.Timestamp
6462

6563
Member:
6664
docs: A group member.

fern/definition/identity/common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ types:
1111
GlobalEvent:
1212
docs: An event relevant to the current identity.
1313
properties:
14-
ts: datetime
14+
ts: commons.Timestamp
1515
kind: GlobalEventKind
1616
notification: optional<GlobalEventNotification>
1717

infra/tf/dns/cert_packs.tf

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ locals {
1010
needs_cdn_cert_pack = data.cloudflare_zone.cdn.name != var.domain_cdn
1111
}
1212

13-
# TODO: Only if we use deprecated subdomains
14-
# Allow CLoudflare to serve TLS requests at the edge for our wildcard
13+
# Allow Cloudflare to serve TLS requests at the edge for our wildcard
1514
# subdomains.
1615
#
1716
# This requires paying money for these certs.
@@ -25,13 +24,19 @@ resource "cloudflare_certificate_pack" "main" {
2524
certificate_authority = "lets_encrypt"
2625
# The certificate must include the root domain in it.
2726
#
28-
# We convert to set then back to list to remove potential duplicates of the root zoon.
29-
hosts = sort(tolist(toset([
30-
data.cloudflare_zone.main.name,
31-
var.domain_main,
32-
"*.${var.domain_main}",
33-
"*.api.${var.domain_main}",
34-
])))
27+
# We convert to set then back to list to remove potential duplicates of the root zone.
28+
hosts = sort(tolist(toset(
29+
flatten([
30+
[
31+
data.cloudflare_zone.main.name,
32+
var.domain_main,
33+
"*.${var.domain_main}",
34+
# TODO: Only if we use deprecated subdomains
35+
"*.api.${var.domain_main}",
36+
],
37+
var.opengb_enabled ? ["*.opengb.${var.domain_main}"] : []
38+
])
39+
)))
3540
type = "advanced"
3641
validation_method = "txt"
3742
validity_days = 90

infra/tf/dns/vars.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ variable "extra_dns" {
4141
}))
4242
}
4343

44+
# MARK: OpenGB
45+
variable "opengb_enabled" {
46+
type = bool
47+
}
48+
4449
# MARK: Cloudflare
4550
variable "cloudflare_account_id" {
4651
type = string

0 commit comments

Comments
 (0)