vikunja-api/docs/content/doc/setup
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
..
backups.md docs: update backup instructions 2021-11-13 18:00:49 +01:00
build-from-source.md fix: broken link (#27) 2022-04-18 21:00:46 +02:00
config.md feat: ability to serve static files (#1174) 2022-05-23 20:49:28 +00:00
docker-start-to-finish.md Don't use the mariadb root user in docker-compose examples 2021-06-20 22:37:35 +02:00
full-docker-example.md docs: add guide for Synology NAS 2022-01-25 22:40:19 +01:00
install-backend.md docs: improve wording for systemd 2021-12-07 18:35:39 +01:00
install-frontend.md Docs: Fix rewrite rules in apache example configs 2021-08-02 17:09:38 +02:00
install.md docs: add another tutorial link 2021-11-16 21:17:53 +01:00
reverse-proxies.md feat(docs): add details of using NGINX Proxy Manager to the Reverse Proxy docs (#13) 2021-12-19 19:54:18 +01:00
utf-8.md Add toc to docs 2020-09-03 17:34:44 +02:00