Skip to content

Commit f6e2305

Browse files
committed
feat: local developer setup
1 parent c1f95da commit f6e2305

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

docs/developer/Caddyfile

+39-39
Original file line numberDiff line numberDiff line change
@@ -4,60 +4,60 @@
44
}
55

66
aam.localhost:80, aam.localhost:443 {
7-
handle_path /auth* {
8-
reverse_proxy keycloak:8080 {
9-
header_up Host {host}
10-
}
11-
}
7+
handle_path /auth* {
8+
reverse_proxy keycloak:8080 {
9+
header_up Host {host}
10+
}
11+
}
1212

13-
handle_path /db/couchdb* {
14-
reverse_proxy db-couch:5984
15-
}
13+
handle_path /db/couchdb* {
14+
reverse_proxy db-couch:5984
15+
}
1616

17-
handle_path /db* {
18-
reverse_proxy replication-backend:5984
19-
}
17+
handle_path /db* {
18+
reverse_proxy replication-backend:5984
19+
}
2020

21-
handle_path /accounts-backend* {
22-
# activate this line instead of the existing if your account-backend is running locally
23-
# reverse_proxy http://host.docker.internal:3000
21+
handle_path /accounts-backend* {
22+
# activate this line instead of the existing if your account-backend is running locally
23+
# reverse_proxy http://host.docker.internal:3000
2424

25-
# activate this line when account-backend is running as docker container (default)
26-
reverse_proxy accounts-backend:3000
27-
}
25+
# activate this line when account-backend is running as docker container (default)
26+
reverse_proxy accounts-backend:3000
27+
}
2828

29-
handle_path /replication-backend* {
30-
reverse_proxy replication-backend:5984
31-
}
29+
handle_path /replication-backend* {
30+
reverse_proxy replication-backend:5984
31+
}
3232

33-
handle_path /api* {
34-
# reverse_proxy http://host.docker.internal:9000 # local running app
35-
reverse_proxy aam-backend-service:8080 # docker container
36-
}
33+
handle_path /api* {
34+
# reverse_proxy http://host.docker.internal:9000 # local running app
35+
reverse_proxy aam-backend-service:8080 # docker container
36+
}
3737

38-
handle_path /sqs* {
39-
reverse_proxy sqs:4984
40-
}
38+
handle_path /sqs* {
39+
reverse_proxy sqs:4984
40+
}
4141

42-
handle_path /rabbitmq/* {
43-
reverse_proxy rabbitmq:15672
44-
}
42+
handle_path /rabbitmq/* {
43+
reverse_proxy rabbitmq:15672
44+
}
4545

4646
handle_path /nominatim/* {
4747
reverse_proxy https://nominatim.openstreetmap.org
4848
}
4949

50-
handle_path /maildev/* {
51-
reverse_proxy maildev:1080
52-
}
50+
handle_path /maildev/* {
51+
reverse_proxy maildev:1080
52+
}
5353

54-
handle_path /hello {
55-
respond "Hello. This is aam-digital-reverse-proxy." 200
56-
}
54+
handle_path /hello {
55+
respond "Hello. This is aam-digital-reverse-proxy." 200
56+
}
5757

5858
# redirect all other traffic to the locally running angular app (on host machine)
5959
# on linux this may need some additional configuration. See README.md
60-
handle_path /* {
61-
reverse_proxy http://host.docker.internal:4200
62-
}
60+
handle_path /* {
61+
reverse_proxy http://host.docker.internal:4200
62+
}
6363
}

0 commit comments

Comments
 (0)