691 B
691 B
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
sudo nano /etc/hosts
then
add this
127.0.0.1 exampler1267.internal
Caddyfile example
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