joplin-notes/joplin notion extension/Web Development/Extras/Tools/caddy.md
2026-11-04 00:33:23 +05:30

46 lines
No EOL
691 B
Markdown

caddy
either install go binary and place it where root user can access or use your package manager to install
and for domains which are not public use this TLD
`.local`, `.internal`, `.localhost` and make to sure to register them like this
```sh
sudo nano /etc/hosts
```
then
add this
`127.0.0.1 exampler1267.internal`
Caddyfile example
```txt
localhost:3009 {
respond "Hello, world!"
}
# :8007 {
# bind 0.0.0.0
# tls internal
# reverse_proxy :8008
# }
https://localhost:8007 {
bind 0.0.0.0
tls internal
reverse_proxy :8008
}
https://192.168.29.234:8007 {
bind 0.0.0.0
tls internal
reverse_proxy :8008
}
```
use `caddy start` and `caddy stop` to start and end process