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:51]
derek
esxi:caddy_server [2025/12/25 09:41] (current)
derek
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 76: Line 74:
  
 # Get a DNS API token from https://dash.cloudflare.com/profile/api-tokens: # Get a DNS API token from https://dash.cloudflare.com/profile/api-tokens:
-#   Edit zone DNS > Use template: 
-#     Zone.Zone:Read permission 
-#     Access to all zones 
-#   Save/keep open the API token 
 #   Edit zone DNS > Use template: #   Edit zone DNS > Use template:
 #     Zone.DNS:Edit permission #     Zone.DNS:Edit permission
 +#     Add a Permissions entry for: Zone.Zone:Read
 #     Restriction of the domain you're managing with Caddy #     Restriction of the domain you're managing with Caddy
 #   Save/keep open the API token #   Save/keep open the API token
Line 93: Line 88:
 # Paste in the following lines with their respective keys filled in: # Paste in the following lines with their respective keys filled in:
 [Service] [Service]
-Environment="CF_ZONE_TOKEN=" 
 Environment="CF_API_TOKEN=" Environment="CF_API_TOKEN="
 Environment="GOOGLE_CLIENT_ID=" Environment="GOOGLE_CLIENT_ID="
Line 117: Line 111:
 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 130: Line 131:
 # Update Caddy # Update Caddy
 caddy update caddy update
 +chmod 755 /usr/bin/caddy
 systemctl reload caddy systemctl reload caddy
  
esxi/caddy_server.1722286314.txt.gz · Last modified: 2024/09/22 19:51 (external edit)