21 lines
495 B
Plaintext
21 lines
495 B
Plaintext
docs.example.org {
|
|
# API requests go to Docker container
|
|
handle /api* {
|
|
reverse_proxy HOST:PORT # TODO: set to HOST and PORT from .env
|
|
}
|
|
|
|
handle {
|
|
file_server {
|
|
root $COMPOSE_DIR/volumes/docs # TODO: change $COMPOSE_DIR to the actual path
|
|
index index.html
|
|
browse off
|
|
}
|
|
}
|
|
|
|
#log {
|
|
# output_file /var/log/caddy/docs.example.org.log {
|
|
# roll_size 10MB
|
|
# roll_keep 10
|
|
# }
|
|
#}
|
|
} |