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

A Cloud Native Buildpack to provide default server configurations

Notifications You must be signed in to change notification settings

paketo-community/staticfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Cloud Native Buildpack to provide default server configurations

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published