api/pkg
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: vikunja/api#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
..
caldav User Data Export and import (#967) 2021-09-04 19:26:31 +00:00
cmd fix: validate email address when creating a user via cli 2022-03-04 19:58:40 +01:00
config feat: ability to serve static files (#1174) 2022-05-23 20:49:28 +00:00
cron Update copyright year 2021-02-02 20:19:13 +01:00
db Add client-cert parameters of the Go pq driver to the Vikunja config (#1161) 2022-04-23 15:46:00 +00:00
events Task mentions (#926) 2021-07-29 15:42:49 +00:00
files fix: checking for error types 2022-03-27 17:52:33 +02:00
initialize feat: add migration to create BlurHash strings for all list backgrounds 2022-03-30 16:36:07 +00:00
integrations feat: add date math for filters (#1086) 2022-03-27 20:35:04 +00:00
log fix: disabling logging completely now works 2022-02-19 17:42:32 +01:00
mail Fix panic on invalid smtp config 2021-08-02 00:05:13 +02:00
metrics Update module prometheus/client_golang to v1.11.0 (#879) 2021-06-11 13:08:28 +00:00
migration fix: lint 2022-03-30 16:36:07 +00:00
models feat: generate a BlurHash when uploading a new image 2022-03-30 16:36:07 +00:00
modules fix: lint 2022-03-30 16:36:07 +00:00
notifications User account deletion (#937) 2021-08-11 19:08:10 +00:00
red Update copyright year 2021-02-02 20:19:13 +01:00
routes feat: ability to serve static files (#1174) 2022-05-23 20:49:28 +00:00
swagger fix(deps): update module github.com/swaggo/swag to v1.8.2 (#1167) 2022-05-15 19:57:00 +00:00
user feat: add caldav tokens (#1065) 2022-03-30 18:25:56 +00:00
utils feat: upgrade golangci-lint to 1.45.2 2022-03-27 16:55:37 +02:00
version Update copyright year 2021-02-02 20:19:13 +01:00