Skip to content

Commit 1ba7760

Browse files
authored
add how to generate htpasswd
for matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_key resolves spantaleev#1308
1 parent d38c0e1 commit 1ba7760

File tree

1 file changed

+4
-0
lines changed
  • roles/matrix-nginx-proxy/defaults

1 file changed

+4
-0
lines changed

roles/matrix-nginx-proxy/defaults/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ matrix_nginx_proxy_proxy_matrix_identity_api_addr_sans_container: "127.0.0.1:809
183183
# Controls whether proxying for metrics (`/_synapse/metrics`) should be done (on the matrix domain)
184184
matrix_nginx_proxy_proxy_synapse_metrics: false
185185
matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_enabled: false
186+
# The following value will be written verbatim to the htpasswd file that stores the password for nginx to check against and needs to be encoded appropriately.
187+
# Read the manpage at `man 1 htpasswd` to learn more, then encrypt your password, and paste the encrypted value here.
188+
# e.g. `htpasswd -c mypass.htpasswd prometheus` and enter `mysecurepw` when prompted yields `prometheus:$apr1$wZhqsn.U$7LC3kMmjUbjNAZjyMyvYv/`
189+
# The part after `prometheus:` is needed here. matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_key: "$apr1$wZhqsn.U$7LC3kMmjUbjNAZjyMyvYv/"
186190
matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_key: ""
187191

188192
# The addresses where the Matrix Client API is.

0 commit comments

Comments
 (0)