mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 01:39:18 +02:00
deploy: draft Caddyfile template
This commit is contained in:
parent
ae56890fa3
commit
c44a952d0e
1 changed files with 57 additions and 0 deletions
57
deploy/Caddyfile.template
Normal file
57
deploy/Caddyfile.template
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
# This template makes the funkwhale web-interface accessible
|
||||||
|
# Music-streaming is still broken
|
||||||
|
yourdomain.funkwhale {
|
||||||
|
log {
|
||||||
|
output file /var/log/caddy/funkwhale.json
|
||||||
|
}
|
||||||
|
|
||||||
|
encode gzip
|
||||||
|
|
||||||
|
# Not quite sure on this
|
||||||
|
rewrite /rest/* /api/subsonic/{path}
|
||||||
|
|
||||||
|
route /front/* {
|
||||||
|
uri strip_prefix /front
|
||||||
|
root * {$FUNKWHALE_FRONTEND_PATH:/srv/funkwhale/front/dist}
|
||||||
|
file_server
|
||||||
|
}
|
||||||
|
|
||||||
|
route /staticfiles/* {
|
||||||
|
# django static files
|
||||||
|
uri strip_prefix /staticfiles
|
||||||
|
root * {$STATIC_ROOT:/srv/funkwhale/data/static}
|
||||||
|
file_server
|
||||||
|
}
|
||||||
|
|
||||||
|
## location /media/ {
|
||||||
|
## alias ${MEDIA_ROOT}/;
|
||||||
|
## }
|
||||||
|
|
||||||
|
## location /_protected/media {
|
||||||
|
## # this is an internal location that is used to serve
|
||||||
|
## # audio files once correct permission / authentication
|
||||||
|
## # has been checked on API side
|
||||||
|
## internal;
|
||||||
|
## alias ${MEDIA_ROOT};
|
||||||
|
## }
|
||||||
|
|
||||||
|
## # Comment the previous location and uncomment this one if you're storing
|
||||||
|
## # media files in a S3 bucket
|
||||||
|
## # location ~ /_protected/media/(.+) {
|
||||||
|
## # internal;
|
||||||
|
## # # Needed to ensure DSub auth isn't forwarded to S3/Minio, see #932
|
||||||
|
## # proxy_set_header Authorization "";
|
||||||
|
## # proxy_pass $1;
|
||||||
|
## # }
|
||||||
|
|
||||||
|
## location /_protected/music {
|
||||||
|
## # this is an internal location that is used to serve
|
||||||
|
## # audio files once correct permission / authentication
|
||||||
|
## # has been checked on API side
|
||||||
|
## # Set this to the same value as your MUSIC_DIRECTORY_PATH setting
|
||||||
|
## internal;
|
||||||
|
## alias ${MUSIC_DIRECTORY_SERVE_PATH};
|
||||||
|
## }
|
||||||
|
|
||||||
|
reverse_proxy 127.0.0.1:5000
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue