Skip to content

Serve .well-known content #175

Open
Open
@jace

Description

@jace

The .well-known folder from RFC 5785 has multiple use cases:

  1. To host files like /.well-known/assetlinks.json and /.well-known/apple-app-site-association. These are app data and should be stored in version control.

  2. To create a temporary file in /.well-known/acme-challenge/ for the purpose of site verification for a TLS certificate. These are not app data and should not be in version control.

Baseframe already handles pre-RFC 5785 static files like /favicon.ico, /robots.txt and /humans.txt, looking for the appropriate file in the app's static folder and defaulting to Baseframe's versions. It should support the .well-known folder as well.

  1. Apps should host a static/.well-known folder, and should add static/.well-known/acme-challenge/ to .gitignore (add this in hgapp first)
  2. Baseframe should handle .well-known/<path:filename> and serve from the app's static folder.
  3. Nginx or other web server can directly serve this folder, similar to the hardcoded handling of the static folder. We don't document Nginx settings in version control anywhere, but should do this in hasdev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions