I am not able to change Caddyfile v1 to v2

1. Caddy version (caddy version):

v2.1.1 h1:X9k1+ehZPYYrSqBvf/ocUgdLSRIuiNiMo7CvyGUQKeA=

2. How I run Caddy:

caddy start

a. System environment:

b. Command:

caddy run

paste command here
I am not able to convert v1 to v2 because as I read some document directive are different, could you please assist me to change v1 to v2 caddyfile

#### c. Service/unit/compose file:
<!-- If using Docker/systemd/Kubernetes/make etc. -->

paste full file contents here
auth.ot.loc:80 {
proxy / {$ENV_F_HOST}:3000 {
transparent
}
proxy /api localhost:3002 {
transparent
}
proxy /oauth localhost:3002 {
transparent
}
proxy /sockjs-node {$ENV_F_HOST}:3000 {
websocket
}
}
agency.ot.loc:80 {
proxy / {$ENV_F_HOST}:3001 {
transparent
}
proxy /api localhost:3003 {
transparent
}
proxy /oauth localhost:3003 {
transparent
}
proxy /uploads localhost:3003 {
transparent
}

proxy /rental_applications localhost:3003 {
    transparent
}
proxy /sockjs-node {$ENV_F_HOST}:3001 {
  websocket
}

}


#### d. My complete Caddyfile or JSON config:

paste config here, replacing this text
DO NOT REDACT anything except credentials


### 3. The problem I'm having:
<!-- What are you trying to do, and what isn't working? Please describe the issue thoroughly enough so that anyone can reproduce the exact behavior you're seeing. Be as specific as possible. -->



### 4. Error messages and/or full log output:
<!-- Please **DO NOT REDACT** any information except credentials. -->



### 5. What I already tried:
<!-- Show us what effort you've put in to solving the problem. Be specific -- people are volunteering their time to help you! Low effort posts are not likely to get good answers! -->



### 6. Links to relevant resources:

Have you read the upgrade guide?

Your post is quite messy in formatting, it’s hard to read. Please make sure your config is wrapped with ``` on the lines before and after it.

This topic was automatically closed after 30 days. New replies are no longer allowed.