Ability to serve static files #1173
No reviewers
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#1173
Loading…
Reference in New Issue
No description provided.
Delete Branch "grahammiln/api:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Added the configuration key,
service.staticpath
, to serve files from the configuration path on root (/).Serving static files allows the api service to also serve the frontend content. This is a simple option for deploying Vikunja without needing any other servers or proxies.
Running a complete instance becomes:
Where
/path/to/frontend
is a copy of Vikunja's frontend static files.Implementation
Providing a path, via the configuration or environment, adds a static file middleware to serve the path's contents from root (/).
By default, the configuration path is empty and Vikunja's existing behaviour is unchanged.
Checklist
mage do-the-swag
)config.yml.saml
and runningmage generate-docs
)grahammiln referenced this pull request2022-05-22 14:19:09 +00:00
@ -9,1 +9,4 @@
## [Unreleased]
* Add static file support for simplified deployment
Please don't include this - we usually do this at release time.
Pull request closed