User Tools

Site Tools


terminal:caddy

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
terminal:caddy [2024/08/18 01:58] meloterminal:caddy [2024/09/06 18:08] (current) melo
Line 1: Line 1:
 ===== caddy notes ===== ===== caddy notes =====
          
-file browse:+static site:
 <code>https://example.com { <code>https://example.com {
         root * "/path/to/dir"         root * "/path/to/dir"
         file_server         file_server
 +}</code>
 +
 +file browse
 +<code>https://example.com {
 +    root * "/path/to/dir"
 +    file_server browse
 }</code> }</code>
  
Line 20: Line 26:
         reverse_proxy 192.168.1.123:8080         reverse_proxy 192.168.1.123:8080
 }</code> }</code>
 +
 +reverse proxy with basic auth:
 +<code>https://example.com {
 +        reverse_proxy 192.168.1.123:8080
 +        basicauth /* {
 +                username basicauth_hash
 +        }
 +
 +}</code>
 +<code>htpasswd -nbBC 10 username password_to_be_hashed</code>
terminal/caddy.1723946298.txt.gz · Last modified: 2024/08/18 01:58 by melo

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki