I tried the site many times, but it didn’t work; For example, the IP address of the local nodeJS service is localhost:3001 and my domain name is abc.cn
Can you give me a code reference that can open HTTPS?
use Caddyfile ?
a. System environment:
Windows
b. Command:
Paste command here.
c. Service/unit/compose file:
Paste full file contents here.
Make sure backticks stay on their own lines,
and the post looks nice in the preview pane.
d. My complete Caddyfile or JSON config:
Paste config here, replacing this text.
Use `caddy fmt` to make it readable.
DO NOT REDACT anything except credentials.
LEAVE DOMAIN NAMES INTACT.
Make sure the backticks stay on their own lines.
The open curly brace { must be at the end of its line.
The close curly brace } must be on its own line.
When there is only one site block, the curly braces (and indentation) are optional. This is for convenience to quickly define a single site, for example, this:
These are the multiple commands I tried
It’s not a single file
It’s not the same file
Try multiple commands in sequence
The domain name error is intentional, because the question here does not allow multiple inclusion