-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathCaddyfile.test
More file actions
37 lines (30 loc) · 1004 Bytes
/
Caddyfile.test
File metadata and controls
37 lines (30 loc) · 1004 Bytes
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
# this is for testing your caddy config locally
{
email someone@example.com # replace with your email
# so that caddy won't go generating certificates for you
local_certs
}
# in /etc/hosts, add the following line:
# 127.0.0.1 example.com
example.com {
tls internal
bind 0.0.0.0
# keep this if you want your files to be accessible at example.com/assets/*
handle_path /assets/* {
reverse_proxy minio:9000
}
handle {
reverse_proxy platform:3000
}
}
# if you want to use a different domain for your files, you can do so here
# for instance, now all your files will be accessible at assets.example.com
# if you go this route, be sure to update your ASSETS_STORAGE_ENDPOINT in .env and restart your services
# assets.example.com {
# reverse_proxy minio:9000
# }
# if you want to manage your files via the minio console, you can expose it like so
# this is usually not necessary
# assets-admin.example.com {
# reverse_proxy minio:9001
# }