openfaas / of-watchdog

Reverse proxy for STDIO and HTTP microservices
MIT License
259 stars 115 forks source link

Add a new `static` mode for serving static content #74

Closed matipan closed 4 years ago

matipan commented 4 years ago

Expected Behaviour

Template creators would specify a new mode called static that would allow them to serve static content that they specified over http.

Current Behaviour

Users cannot use the watchdog for serving static content. They would have to create their own static server or use an existing solution like nginx.

Possible Solution

We would have a new mode called static and a new variable called publish, publish would have the relative path to the directory that the user wants to serve.

Something that we could add in the future is analytics so that users can now which blog posts or page was the most visited.

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

While creating a template for static sites I was not able to reuse the watchdog.

Your Environment

matipan commented 4 years ago

Derek assign: me

alexellis commented 4 years ago

I'm thinking static_path for the folder.