Add new service: nostr.kosmos.org (members-only nostr relay) #559

Merged
greg merged 14 commits from feature/strfry into master 2024-07-05 07:33:41 +00:00
2 changed files with 14 additions and 2 deletions
Showing only changes of commit 80eddfbf56 - Show all commits

View File

@ -107,6 +107,9 @@
"domain": "nostr.kosmos.org",
"real_ip_header": "x-real-ip",
"policy_path": "/opt/strfry-policy.ts",
"whitelist_pubkeys": [
"b3e1b7c1660b7db0ecb93ec55c09e67961171a5c4e9e2602f1b47477ea61c50a"
],
"info": {
"name": "Kosmos Relay",
"description": "Members-only nostr relay for kosmos.org users",

View File

@ -15,7 +15,8 @@ env = {
ldap_url: 'ldap://ldap.kosmos.local:389', # requires "ldap_client" role
ldap_bind_dn: ldap_credentials["service_dn"],
ldap_password: ldap_credentials["service_password"],
ldap_search_dn: node["strfry"]["ldap_search_dn"]
ldap_search_dn: node["strfry"]["ldap_search_dn"],
whitelist_pubkeys: node["strfry"]["whitelist_pubkeys"].join(",")
}
template "/opt/.env" do
@ -32,7 +33,15 @@ end
# strfry deno scripts
#
base_url = "https://gitea.kosmos.org/kosmos/akkounts/raw/branch/master/extras/strfry"
base_url = "https://gitea.kosmos.org/kosmos/akkounts/raw/branch/live/extras/strfry"
remote_file "/opt/deno.json" do
source "#{base_url}/deno.json"
owner node["strfry"]["user"]
group node["strfry"]["group"]
mode "0644"
notifies :restart, "service[strfry]", :delayed
raucao marked this conversation as resolved Outdated
Outdated
Review

Is this service defined anywhere else? I can see it's commented out on line 77

Is this service defined anywhere else? I can see it's commented out on line 77

It's created in the strfry cookbook. I have removed the commented code. Thanks.

It's created in the `strfry` cookbook. I have removed the commented code. Thanks.
end
remote_file "/opt/strfry-policy.ts" do
source "#{base_url}/strfry-policy.ts"