Skip to content

Commit

Permalink
HKG->AMS replication over VPN
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Ceratto committed Apr 1, 2020
1 parent 7c94740 commit c19497f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ansible/roles/plpsql/templates/pg_hba.conf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ host all all ::1/128 trust

# NB: `ssl` is neither supported nor enforced.
{% if 'db_active' in group_names %}
host replication amsrepl {{ lookup('dig', 'amsmetadb.ooni.nu/A') }}/32 md5

# Run active->standby replication over VPN
host replication amsrepl 10.1.0.1/32 md5

# Run active->standby replication without VPN - unused
#host replication amsrepl {{ lookup('dig', 'amsmetadb.ooni.nu/A') }}/32 md5

{% endif %}

host all all all md5

0 comments on commit c19497f

Please sign in to comment.