Naive Install

prerequisite:

you need a domain name first.

installation commands:

#go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest
#~/go/bin/xcaddy build --with github.com/caddyserver/forwardproxy@caddy2=github.com/klzgrad/forwardproxy@naive

config:

create a file named Caddyfile

{
        order forward_proxy before file_server
}
:443, domainname.com {
        tls yourmail@mail.com
        forward_proxy {
                basic_auth username userpassword
                hide_ip
                hide_via
                probe_resistance
        }
        file_server {
                root /var/www/html
        }
}

This will use folder /var/www/html as web server content. and will automatically help you get https certification.

change domain name and your email. Happy Naive.

Leave a Reply