aboutsummaryrefslogtreecommitdiff
path: root/infrastructure/roles/vaultwarden/Caddyfile
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2026-01-10 13:03:10 +0100
committeralexpdp7 <alex@corcoles.net>2026-01-10 12:04:19 +0000
commita060a8b8fafcdfcc49dd2da37cd364afd9d0702e (patch)
tree8576140fba65a4b4652c2be9e89446703d260417 /infrastructure/roles/vaultwarden/Caddyfile
parent89ffb89856ea4892c1d38f1f01d4fbb73925b481 (diff)
Add instructions to run the web vault locally
Closes #15
Diffstat (limited to 'infrastructure/roles/vaultwarden/Caddyfile')
-rw-r--r--infrastructure/roles/vaultwarden/Caddyfile40
1 files changed, 40 insertions, 0 deletions
diff --git a/infrastructure/roles/vaultwarden/Caddyfile b/infrastructure/roles/vaultwarden/Caddyfile
new file mode 100644
index 0000000..695c862
--- /dev/null
+++ b/infrastructure/roles/vaultwarden/Caddyfile
@@ -0,0 +1,40 @@
+{
+ auto_https disable_redirects
+ skip_install_trust
+}
+
+https://localhost:8443 {
+ root .
+
+ handle_path /api/* {
+ rewrite * /vaultwarden/api{path}
+ reverse_proxy https://ñix.es
+ }
+
+ handle_path /identity/* {
+ rewrite * /vaultwarden/identity{path}
+ reverse_proxy https://ñix.es
+ }
+
+ handle_path /icons/* {
+ rewrite * /vaultwarden/icons{path}
+ reverse_proxy https://ñix.es
+ }
+
+ handle_path /events/* {
+ rewrite * /vaultwarden/events{path}
+ reverse_proxy https://ñix.es
+ }
+
+ handle_path /notifications/* {
+ rewrite * /vaultwarden/notifications{path}
+ reverse_proxy https://ñix.es
+ }
+
+ handle_path /css/vaultwarden.css {
+ rewrite * /vaultwarden/css/vaultwarden.css
+ reverse_proxy https://ñix.es
+ }
+
+ file_server
+}