going prod step-by-step

This commit is contained in:
2025-10-15 14:11:23 +03:00
parent 529dd0460d
commit b60de5f97c
5 changed files with 477 additions and 2 deletions

21
example.caddy Normal file
View File

@@ -0,0 +1,21 @@
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
# }
#}
}