This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
esxi:caddy_server [2024/07/29 20:09] derek |
esxi:caddy_server [2024/09/22 19:51] (current) |
||
---|---|---|---|
Line 15: | Line 15: | ||
* '' | * '' | ||
* Add a ' | * Add a ' | ||
+ | * If not using a wildcard CNAME record, add a CNAME record for the desired subdomain as above | ||
* '' | * '' | ||
* '' | * '' | ||
Line 54: | Line 55: | ||
curl -L -o " | curl -L -o " | ||
chmod 755 caddy | chmod 755 caddy | ||
- | |||
- | |||
- | |||
# Config file and html pages | # Config file and html pages | ||
Line 91: | Line 89: | ||
systemctl edit caddy | systemctl edit caddy | ||
- | # Paste in the following | + | # Paste in the following lines with their respective keys filled in: |
- | CF_ZONE_TOKEN= | + | [Service] |
- | CF_API_TOKEN= | + | Environment=" |
- | GOOGLE_CLIENT_ID= | + | Environment=" |
- | GOOGLE_CLIENT_SECRET= | + | Environment=" |
+ | Environment=" | ||
# Then save and exit the file with: ESC, :wq | # Then save and exit the file with: ESC, :wq | ||
Line 116: | Line 115: | ||
systemctl reload caddy | systemctl reload caddy | ||
</ | </ | ||
+ | |||
+ | Edit the Caddyfile at [[https:// | ||
+ | |||
+ | Services that require setting Trusted Proxies: | ||
+ | * [[esxi: | ||
+ | * [[home:Home Assistant]] | ||
+ | * [[esxi:AMP Game Server]] | ||
@No_Backup | @No_Backup | ||
Line 129: | Line 135: | ||
# Update Caddy | # Update Caddy | ||
caddy update | caddy update | ||
+ | chmod 755 / | ||
systemctl reload caddy | systemctl reload caddy | ||