src.nth.io/

summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2019-01-19 11:48:07 -0600
committerLuke Hoersten <[email protected]>2019-01-19 11:48:07 -0600
commitd13ab2a9b8b0794f018d5f52f486f36dddf63682 (patch)
treeddc3bdef4730dc1b02d449a12ef64d9f85dc49fd /README.md
parentc5ba641b1cb66e19c23691995bcd0661fbf4d027 (diff)
Added readme.
Diffstat (limited to 'README.md')
-rw-r--r--README.md43
1 files changed, 43 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..903ff8c
--- /dev/null
+++ b/README.md
@@ -0,0 +1,43 @@
+# Pleroma Ansible Roles
+
+This project is a collection of [Ansible](http://ansible.com) roles designed to install one or
+more [Pleroma](https://pleroma.social) instances behind an [Nginx](http://nginx.org) reverse proxy.
+
+## Example Playbook
+
+The following example configures two Pleroma instances on one host and uses an Nginx reverse proxy to route based on
+domain name. The second site is optional.
+
+```yaml
+- hosts: pleroma
+ roles:
+ - role: pleroma
+ pleroma_user: "pleroma_example"
+ pleroma_link_host: "example.social"
+ pleroma_port: 4000
+ pleroma_signup_open: "true"
+
+- hosts: pleroma
+ roles:
+ - role: pleroma
+ pleroma_user: "pleroma_test"
+ pleroma_link_host: "test.social"
+ pleroma_port: 4001
+ pleroma_signup_open: "true"
+```
+
+## Example Ansible Vars
+
+The following variables would go into Ansible `group_vars`, for example, and connects to an AWS RDS PostgreSQL database.
+
+```yaml
+nginx_conf_src: "roles/pleroma/templates/pleroma.nginx.conf.j2"
+nginx_enable_ssl: Yes
+nginx_server_name: "{{pleroma_link_host}}"
+
+pleroma_link_scheme: "https"
+pleroma_db_host: "pleroma.123123.us-east-1.rds.amazonaws.com"
+pleroma_db_passwd: "pleDbPass123"
+pleroma_db_superpass: "dbpass123"
+pleroma_secret_key: "secret123"
+```