bitwarden_rs: Deploy Bitwarden_rs using Docker
The *bitwarden_rs* role sets up the Bitwarden_rs server using its official Docker container. It sets up Apache as a reverse proxy for TLS support.
This commit is contained in:
27
roles/bitwarden_rs/templates/bitwarden.httpd.conf.j2
Normal file
27
roles/bitwarden_rs/templates/bitwarden.httpd.conf.j2
Normal file
@@ -0,0 +1,27 @@
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTPS} !on
|
||||
RewriteRule /.* https://%{SERVER_NAME}$0
|
||||
|
||||
<VirtualHost _default_:443>
|
||||
Include conf.d/ssl.include
|
||||
|
||||
SSLCertificateFile {{ apache_ssl_certificate }}
|
||||
SSLCertificateKeyFile {{ apache_ssl_certificate_key }}
|
||||
SSLCertificateChainFile {{ apache_ssl_certificate }}
|
||||
{% if apache_ssl_ca_certificate is defined %}
|
||||
SSLCACertificateFile {{ apache_ssl_ca_certificate }}
|
||||
{% endif %}
|
||||
|
||||
Header always set \
|
||||
Strict-Transport-Security "max-age=63072000; includeSubDomains"
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP:Upgrade} =websocket [NC]
|
||||
RewriteRule /notifications/hub(.*) ws://localhost:3012/$1 [QSA,P,L]
|
||||
|
||||
ProxyPreserveHost On
|
||||
ProxyRequests Off
|
||||
ProxyPass / http://localhost:8080/
|
||||
ProxyPassReverse / http://localhost:8080/
|
||||
RequestHeader set X-Real-IP %{REMOTE_ADDR}s
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user