User Tools

Site Tools


esxi:caddy_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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:
         * ''Save''         * ''Save''
       * Add a 'SRV' record for any minecraft servers to allow accessing them using subdomains instead of port numbers       * Add a 'SRV' record for any minecraft servers to allow accessing them using subdomains instead of port numbers
 +        * If not using a wildcard CNAME record, add a CNAME record for the desired subdomain as above
         * ''Add record''         * ''Add record''
         * ''Type'' > ''SRV''          * ''Type'' > ''SRV'' 
Line 54: Line 55:
 curl -L -o "caddy" "https://caddyserver.com/api/download?os=linux&arch=amd64&p=github.com%2Fcaddy-dns%2Fcloudflare&p=github.com%2Fgreenpau%2Fcaddy-security&p=github.com%2Fcaddyserver%2Fntlm-transport&idempotency=99104049722873" curl -L -o "caddy" "https://caddyserver.com/api/download?os=linux&arch=amd64&p=github.com%2Fcaddy-dns%2Fcloudflare&p=github.com%2Fgreenpau%2Fcaddy-security&p=github.com%2Fcaddyserver%2Fntlm-transport&idempotency=99104049722873"
 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 three lines with their respective keys filled in: +# Paste in the following lines with their respective keys filled in: 
-CF_ZONE_TOKEN= +[Service] 
-CF_API_TOKEN= +Environment="CF_ZONE_TOKEN=" 
-GOOGLE_CLIENT_ID= +Environment="CF_API_TOKEN=" 
-GOOGLE_CLIENT_SECRET=+Environment="GOOGLE_CLIENT_ID=" 
 +Environment="GOOGLE_CLIENT_SECRET="
 # 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
 </code> </code>
 +
 +Edit the Caddyfile at [[https://github.com/Archer4499/Configs/blob/master/Server/Caddy/Caddyfile]] to add or modify services then follow the command in [[#Update]] to update the file in the VM.
 +
 +Services that require setting Trusted Proxies:
 +  * [[esxi:xpenology]]
 +  * [[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 /usr/bin/caddy
 systemctl reload caddy systemctl reload caddy
  
esxi/caddy_server.1722283759.txt.gz · Last modified: 2024/09/22 19:51 (external edit)