From 2920c25a6930fd30dbc86c34d0d86e9fadc168da Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 23 Apr 2023 18:39:11 -0500 Subject: [PATCH] websites/p-bitwarden: Redirect .blue to .net Avoid confusion with WebAuthn by ensuring users only access the application by its canonical name. --- .../proxy-bitwarden/templates/bitwarden.httpd.conf.j2 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/roles/websites/proxy-bitwarden/templates/bitwarden.httpd.conf.j2 b/roles/websites/proxy-bitwarden/templates/bitwarden.httpd.conf.j2 index d135648..79c5574 100644 --- a/roles/websites/proxy-bitwarden/templates/bitwarden.httpd.conf.j2 +++ b/roles/websites/proxy-bitwarden/templates/bitwarden.httpd.conf.j2 @@ -1,6 +1,15 @@ ServerName bitwarden.pyrocufflink.blue -ServerAlias bitwarden.pyrocufflink.net + +Include conf.d/ssl.include +SSLCertificateFile /etc/pki/tls/certs/pyrocufflink.net.cer +SSLCertificateKeyFile /etc/pki/tls/private/pyrocufflink.net.key + +Redirect permanent / https://bitwarden.pyrocufflink.net/ + + + +ServerName bitwarden.pyrocufflink.net Include conf.d/ssl.include SSLCertificateFile /etc/pki/tls/certs/pyrocufflink.net.cer