aboutsummaryrefslogtreecommitdiff
path: root/infrastructure/roles/vaultwarden/Caddyfile
blob: 695c8623b65c08498b0c5305a9c01f2d5b7d1427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
}