Go to file
2023-08-17 07:50:15 -07:00
defaults Install strfry-policies with the basic starter template policy. 2023-08-12 14:59:36 -07:00
docs/examples Remove http2 because it probably provides absolutely no benefit for a nostr client. 2023-07-30 19:57:29 -07:00
files Install strfry-policies with the basic starter template policy. 2023-08-12 14:59:36 -07:00
handlers Initialize repo for strfry nostr relay Ansible Role. 2023-07-29 17:19:36 -07:00
meta Initialize repo for strfry nostr relay Ansible Role. 2023-07-29 17:19:36 -07:00
tasks Install strfry-policies with the basic starter template policy. 2023-08-12 14:59:36 -07:00
templates Install strfry-policies with the basic starter template policy. 2023-08-12 14:59:36 -07:00
vars Removed debug comments and tested on Archlinux, Debian 11, Ubuntu 22.04 2023-07-29 18:14:08 -07:00
.gitignore Initialize repo for strfry nostr relay Ansible Role. 2023-07-29 17:19:36 -07:00
LICENSE Initialize repo for strfry nostr relay Ansible Role. 2023-07-29 17:19:36 -07:00
README.md Fix example. 2023-08-17 07:50:15 -07:00

Ansible Role: strfry

This Ansible Role builds and installs strfry, and also sets up strfry-policies. It is intended to be composed with a separate role to handle the web proxy configuration.

Tested on:

  • Archlinux
  • Debian 11
  • Ubuntu 22.04

Requirements

None.

Role Variables

strfry_version: beta # git repository branch or release tag
strfry_make_jobs: "{{ ansible_processor_cores }}" # number of CPUs to build with
strfry_skip_config: no
strfry_policies_enabled: yes

See the role defaults.

If you are not using the beta branch/version, you should override the template with your own by enabling strfry_skip_config and managing the configuration manually.

strfry_skip_config: yes

For more configuration info, see the relevant upstream configuration example for your branch/version.

Example Playbook

- hosts: strfry
  roles:
    - role: bleetube.strfry
    - role: nginxinc.nginx_core.nginx
      become: yes
  tasks:
    - import_tasks: nginx_conf.yml
      become: yes

A sample nginx configuration is provided.

For a fully functional production example that includes hosting multiple relays, see this homelab stack.

Troubleshooting

If make fails, try building on a single core:

ansible-playbook playbooks/strfry/main.yml -e 'strfry_make_jobs=1'

Logs

systemctl status strfry
journalctl -fu strfry

Resources

Plugins: