Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(caddy): a few more updates #530

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

docs(caddy): a few more updates #530

wants to merge 1 commit into from

Conversation

coolaj86
Copy link
Member

fixed a typo, moved a few sections into a better order

@coolaj86
Copy link
Member Author

coolaj86 commented Feb 10, 2023

Don't get the dev site flagged by browser block lists as spam:

dev.example.com {

   ...

    header {
        Link "<https://production.example.com{http.request.orig_uri}>; rel=\"canonical\""
        X-Robots-Tag noindex
    }
}

@coolaj86
Copy link
Member Author

Also need xcaddy and how to use tls plugins.

caddy run --envfile .env.secret --config ./Caddyfile
example.com {
    # ...
    tls {
        dns duckdns {env.DUCKDNS_API_TOKEN}
    }
}
#!/bin/sh

#export XCADDY_SETCAP=1
export XCADDY_SUDO=0
export XCADDY_SKIP_CLEANUP=1

xcaddy build \
    --with github.com/mholt/caddy-l4/layer4 \
    --with github.com/mholt/caddy-l4/modules/l4tls \
    --with github.com/mholt/caddy-l4/modules/l4subroute \
    --with github.com/mholt/caddy-l4/modules/l4http \
    --with github.com/mholt/caddy-l4/modules/l4ssh \
    --with github.com/mholt/caddy-l4/modules/l4proxy \
    --with github.com/caddy-dns/cloudflare \
    --with github.com/caddy-dns/duckdns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants