vikunja-api/docs
grahammiln acaa85083f feat: ability to serve static files (#1174)
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:

    VIKUNJA_SERVICE_STATICPATH=/path/to/frontend ./vikunja

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.

Co-authored-by: Graham Miln <graham.miln@dssw.co.uk>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1174
Reviewed-by: konrad <k@knt.li>
Co-authored-by: grahammiln <grahammiln@noreply.kolaente.de>
Co-committed-by: grahammiln <grahammiln@noreply.kolaente.de>
2022-05-23 20:49:28 +00:00
..
content/doc feat: ability to serve static files (#1174) 2022-05-23 20:49:28 +00:00
static docs: add guide for Synology NAS 2022-01-25 22:40:19 +01:00
config.yml fix(docs): don't use cannonify url 2022-02-25 14:25:03 +01:00
Dockerfile Huge improvements for docs (#58) 2019-02-17 19:53:04 +00:00
nginx.conf chore(docs): redirect properly from /docs/docs 2022-03-06 13:42:07 +01:00