Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Latest commit

 

History

History
53 lines (39 loc) · 1.18 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.18 KB

Staticfile Cloud Native Buildpack

The buildpack automates the process of creating configuration files for nginx.

Integration

[[requires]]

  # The name of the Staticfile dependency is "staticfile". This value is considered
  # part of the public API for the buildpack and will not change without a plan
  # for deprecation.
  name = "staticfile"

Usage

To package this buildpack for consumption:

$ ./scripts/package.sh

This builds the buildpack's Go source using GOOS=linux by default. You can supply another value as the first argument to package.sh.

buildpack.yml Configurations

staticfile:
  nginx:
    root:     # default value: "public"
    host_dot_files:
    location_include:
    directory:
    ssi:
    pushstate:
    http_strict_transport_security:
    http_strict_transport_security_include_subdomains:
    http_strict_transport_security_preload:
    force_https:
    basic_auth:
    status_codes:

As of now this buildpack only integrates with nginx, so to get a default nginx config simply leave the map under nginx empty.

staticfile:
  nginx: {}

If you do not specify nginx, the detect binary will return an error.