Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serve .well-known content #175

Open
jace opened this issue Dec 6, 2017 · 2 comments
Open

Serve .well-known content #175

jace opened this issue Dec 6, 2017 · 2 comments

Comments

@jace
Copy link
Member

jace commented Dec 6, 2017

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.
@jace
Copy link
Member Author

jace commented Dec 6, 2017

@iambibhas You'll need to change our Let's Encrypt usage to match.

@jace jace closed this as completed in e38633d Dec 6, 2017
@jace
Copy link
Member Author

jace commented Dec 6, 2017

hasgeek/lastuser@9f5377c demonstrates the problem with static files. It includes a hardcoded reference to auth.hasgeek.com, but the source code shouldn't assume where it will be hosted. We need a build stage for these files. Re-opening this ticket until there's another ticket on handling the build stage.

@jace jace reopened this Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant