Score:0

How do I do this from nginx syntax in caddy v2?

ls flag

How can I do this inside a reverse_proxy { ... } statement, done with nginx but I need to do it in caddy v2:

proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
Score:0
ls flag

I think this is right:

    reverse_proxy 127.0.0.1:8181 {
            header_up X-Real-IP {remote_host}
    }

Caddy restarted without errors. The other headers are handled by Caddy automatically. :)

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.