Skip to content

Commit

Permalink
fix caddy wrong reverse proxy addr
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzYanick committed Jan 11, 2024
1 parent 9090253 commit 4bb861e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/config-generator/caddy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const generateServerConfig = (tunnels: Tunnel[]): string => {
if (!isHTTP) continue

config += `${tunnel.type}://${tunnel.hostname} {\n`
config += ` reverse_proxy ${tunnel.target}\n`
config += ` reverse_proxy ${process.env.RATHOLE_BIND_HTTP}:${tunnel.port}\n`
config += '}\n'
}
return config
Expand Down

0 comments on commit 4bb861e

Please sign in to comment.