-
-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathCaddyfile.example
More file actions
60 lines (52 loc) · 1.54 KB
/
Caddyfile.example
File metadata and controls
60 lines (52 loc) · 1.54 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{$DOMAIN} {
import snippets/Logging
# Traffic Analytics service
import snippets/TrafficAnalytics
# ActivityPub Service
import snippets/ActivityPub
# Default proxy everything else to Ghost
handle {
reverse_proxy ghost:2368
}
# Optional: Enable gzip compression
encode gzip
# Optional: Add security headers
import snippets/SecurityHeaders
}
# Separate admin domains
# To use a separate domain for Ghost Admin uncomment the block below (recommended)
# {$ADMIN_DOMAIN} {
# import snippets/Logging
#
# # Traffic Analytics service
# import snippets/TrafficAnalytics
#
# # ActivityPub Service
# import snippets/ActivityPub
#
# # Default proxy everything else to Ghost
# handle {
# reverse_proxy ghost:2368
# }
#
# # Optional: Enable gzip compression
# encode gzip
#
# # Optional: Add security headers
# import snippets/SecurityHeaders
# }
# Redirect www -> root domain
# To redirect the www variant of your domain to the non-www variant uncomment the 4 lines below
# Note: You must have DNS setup correctly for both domains for this to work
# www.{$DOMAIN} {
# import snippets/Logging
# redir https://{$DOMAIN}{uri}
# }
# Redirect root -> www domain
# To redirect the non-www variant of your domain to the www variant uncomment the 4 lines below and change CHANGE_ME to your root domain
# Note: You must have DNS setup correctly for both domains for this to work
# When using ActivityPub with a www. domain, you must enable this redirect for ActivityPub to work correctly
# CHANGE_ME {
# import snippets/Logging
# redir https://{$DOMAIN}{uri}
# }