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

Document: users can provide their own mime.types #74

Merged
merged 1 commit into from Jan 20, 2024

Conversation

pablobm
Copy link
Contributor

@pablobm pablobm commented Dec 15, 2023

This documents something I needed recently, when I wanted to serve epub files.

Incidentally: how is the mime.types sourced? I thought that perhaps it was copied from Nginx's repo regularly, but I see a couple of commits adding new entries and not much movement otherwise. I wanted to make sure before adding epub support myself. Thank you in advance.

README.md Outdated
@@ -46,6 +46,10 @@ dokku config:set static-app NGINX_DEFAULT_REQUEST=index.html

You may completely override the built-in nginx config by placing an `app-nginx.conf.sigil` file in the root, modeled after our own [`conf/app-nginx.conf.sigil`](https://github.com/dokku/buildpack-nginx/blob/master/conf/app-nginx.conf.sigil). This will be used inside of the container, and not by the host Dokku instance. See the [sigil project](https://github.com/gliderlabs/sigil) for more information concerning the sigil format.

### Custom MIME types

Files will be served with a `Content-Type` according to a list of supported MIME types at [`conf/mime.types`](https://github.com/pablobm/heroku-buildpack-nginx/blob/master/conf/mime.types). If you need to serve files of a MIME type not included in the list, you can provide your own `mime.types` file in the root.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong url?

@pablobm
Copy link
Contributor Author

pablobm commented Dec 19, 2023

Good spot! 😳 Fixed now.

@josegonzalez josegonzalez merged commit ec66a23 into dokku:master Jan 20, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants