initial
This commit is contained in:
commit
74ae93a96e
1 changed files with 94691 additions and 0 deletions
|
|
@ -0,0 +1,46 @@
|
|||
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
|
||||
Loading…
Reference in a new issue