Jump to content

Caddy als Reverse Proxy


janee

Recommended Posts

Ich wollte meine Konfiguration mit der Community teilen, da sich die Syntax der Konfiguration in den neuen Caddyversionen verändert hat.

Die Site ist dann ssl zertifiziert. (Let's Encryped) Caddy nennt das: On-Demand-TLS

Weitere Infos findet man hier.

Wichtig: Auf dem Rechner werden Port 80 und 443 benötigt und dürfen nicht von anderen Programmen oder Diensten belegt sein.

 

Weiter Infos gibts im Wiki.

example.com , *.example.com
{
 proxy / 127.0.0.1:8089 {
   header_upstream Host {host}
   header_upstream X-Real-IP {remote}
 }

 tls {
   max_certs 10
   }
       # Log Files
       log access.log {
        rotate_size      50
        rotate_age       7
        rotate_keep      5
    }
 }

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...