Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janek
funkwhale
Commits
c44a952d
Commit
c44a952d
authored
3 years ago
by
xeruf
Browse files
Options
Downloads
Patches
Plain Diff
deploy: draft Caddyfile template
parent
ae56890f
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#16698
passed with warnings
3 years ago
Stage: review
Stage: lint
Stage: test
Stage: deps
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
deploy/Caddyfile.template
+57
-0
57 additions, 0 deletions
deploy/Caddyfile.template
with
57 additions
and
0 deletions
deploy/Caddyfile.template
0 → 100644
+
57
−
0
View file @
c44a952d
# 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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment