Skip to content

Commit

Permalink
Add config files for UFPB LabCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
thesocialdev committed Oct 17, 2024
1 parent aaab729 commit 237fc76
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config.websocket.ufpb-labcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
services:
- name: websocket-aletheia-development
conf:
port: 5051
16 changes: 16 additions & 0 deletions deployment/config/config-file/ufpb-labcheck.pkl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
amends "./modules/main.pkl"
import "./modules/database/mongodb.pkl"
appBaseUrl = "aletheiafact.org"

var = new {
name = "aletheia-ufpb-labcheck"
conf {
cors = "*"
recaptcha_sitekey = "6Lc2BtYUAAAAAOUBI-9r1sDJUIfG2nt6C43noOXh"
websocketUrl = "wss://testws.\(appBaseUrl) "
baseUrl = "https://labcheck.\(appBaseUrl)"
db = (mongodb) {
atlas = true
}
}
}
28 changes: 28 additions & 0 deletions deployment/k8s/ufpb-labcheck.pkl
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
amends "./app.pkl"
import "package://pkg.pkl-lang.org/pkl-k8s/[email protected]#/K8sResource.pkl"
import "./modules/ingress.pkl" as ingress
import "./modules/aletheia.pkl"

appNamespace = "ufpb-labcheck"
podPort = 3000

local newAletheia = new (aletheia) {
ns = appNamespace
p = podPort
}

IngressOptions {
rules {
(ingress.rule) {
host = "labcheck.aletheiafact.org"
}
}
}

DeploymentOptions {
containers {
(newAletheia.pod.container) {
name = "aletheia"
}
}
}

0 comments on commit 237fc76

Please sign in to comment.