mirror of
https://github.com/Cian-H/iform-invenio.git
synced 2025-12-22 20:41:56 +00:00
Added paths for caddy to directly dispatch static assets
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
}
|
||||
|
||||
localhost {
|
||||
handle /static/* {
|
||||
root * /var/www/static/
|
||||
file_server
|
||||
}
|
||||
|
||||
reverse_proxy invenio-rdm:5000 {
|
||||
header_down Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0"
|
||||
header_down Pragma "no-cache"
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
}
|
||||
|
||||
invenio.i-form.ie {
|
||||
handle /static/* {
|
||||
root * /var/www/
|
||||
file_server
|
||||
}
|
||||
|
||||
reverse_proxy invenio-rdm:5000
|
||||
encode gzip
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ services:
|
||||
volumes:
|
||||
- caddy_data:/data
|
||||
- ./caddy/${INVENIO_ENV}:/etc/caddy
|
||||
- site_data:/var/www:ro
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "io.containers.autoupdate=registry"
|
||||
|
||||
Reference in New Issue
Block a user