going prod step-by-step
This commit is contained in:
21
example.caddy
Normal file
21
example.caddy
Normal 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
|
||||
# }
|
||||
#}
|
||||
}
|
||||
Reference in New Issue
Block a user