Add strfry policies and members-only LDAP policy
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This will look up nostr pubkeys in the LDAP directory to allow or deny
publishing notes to the relay.
This commit is contained in:
2024-06-09 22:49:44 +02:00
parent 5a5c316c14
commit c2c3ebc2e1
4 changed files with 79 additions and 3 deletions

View File

@@ -108,15 +108,22 @@ services:
- redis
nostr-relay:
image: pluja/strfry:latest
image: gitea.kosmos.org/kosmos/strfry-deno:1.0.0
volumes:
- ./docker/strfry/strfry.conf:/etc/strfry.conf
- ./extras/strfry/ldap-policy.ts:/opt/ldap-policy.ts
- ./extras/strfry/strfry-policy.ts:/opt/strfry-policy.ts
- strfry-data:/app/strfry-db
networks:
- external_network
- internal_network
ports:
- "4777:7777"
environment:
LDAP_URL: 'ldap://ldap:3389'
LDAP_BIND_DN: 'cn=Directory Manager'
LDAP_PASSWORD: passthebutter
LDAP_SEARCH_DN: 'ou=kosmos.org,cn=users,dc=kosmos,dc=org'
# phpldapadmin:
# image: osixia/phpldapadmin:0.9.0