1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2024-11-24 10:03:06 +00:00
Commit Graph

26 Commits

Author SHA1 Message Date
Akihiko Horiuchi
4e4c3824c5 feat: support nginx custom parameters 2024-09-21 15:53:09 +09:00
Igor Loskutov
eeb2caf824
Add wasm mime type
This is needed for support of WASM standard' https://www.w3.org/TR/wasm-web-api-1/#streaming-modules instantiateStreaming and compileStreaming, 

and causes errors like

```
WASM: wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
```

since plain text is returned instead.

It also doesn't seem to be easily fixable even with `nginx.conf.sigil` substitution
2023-04-16 20:33:18 +07:00
Jose Diaz-Gonzalez
89196adbf1 feat: allow overriding default 404 response with custom file
This allows folks the ability to restore the previous routing functionality used by static sites backed by VueJS (as an example).

Note that all requests routed this way will respond with a '200 OK' on the server, potentially causing SEO issues.

Closes #53
2022-08-07 19:10:31 -04:00
Zach Ahn
6672b6257a
Respond with a 404 when the file doesn't exist
Prior to this, I was seeing the successful HTTP status 200 when
requesting files that did not exist.

With this change, the server sends back Nginx's default 404 page instead
of the home page.
2021-12-02 22:19:05 -05:00
Jose Diaz-Gonzalez
0d2e4c3ee6
feat: use charset utf-8 by default
Closes #40
2020-06-11 15:33:31 -04:00
Justin Smith
1945cf3645
Add text/vtt mime type for caption files
Update to include text/vtt mime type
2019-01-11 15:11:58 +01:00
Effy Elden
6ecc56df72
Add port_in_redirect directive to NGINX configuration template 2017-04-15 00:29:37 +10:00
Jose Diaz-Gonzalez
dd3ac20c6d Switch template to app-nginx.conf.sigil 2016-09-20 01:38:50 -06:00
Jose Diaz-Gonzalez
28d1a580cf Move to supporting sigil templates by default 2016-09-20 00:18:28 -06:00
Jose Diaz-Gonzalez
6430fa286b Merge branch 'master' of https://github.com/riscie/buildpack-nginx into riscie-master 2016-09-19 23:15:28 -06:00
Jose Diaz-Gonzalez
b4bd0c0b1f Merge pull request #9 from leonardowf/master
Add try_files support
2016-09-19 23:12:57 -06:00
Leonardo Wistuba de França
f1d835dd90 Update nginx.conf.erb 2016-09-11 12:05:14 -03:00
Matthias Langhard
bb6e9d398d Forwards requests to index.html after no file or folder was found
Useful for SPA's like AngularJS where the SPA's router takes care of the routing.
2016-06-28 13:45:23 +02:00
Michael Hobbs
ccbb3d7ed5 change ROOT env var and doc it 2015-11-25 10:43:01 -08:00
Blake Kostner
69e450813e added ROOT param 2015-10-05 17:09:58 -07:00
Florian Heinemann
9dbc484b6c UPDATE Readme 2014-11-06 17:32:49 -05:00
Florian Heinemann
5c959aaad6 CHANGE to static compile 2014-11-06 17:29:41 -05:00
Florian Heinemann
36c6e73871 Remove start.sh 2014-11-05 09:36:38 -05:00
rhy-jot
6e95563072 Move types_hash_max_size to the http context 2014-06-25 10:17:46 -07:00
rhy-jot
75f5e89851 Merge pull request #5 from j15e/patch-1
Update with more complete default mime.types
2014-06-25 10:16:27 -07:00
rhy-jot
04ecbabbc4 Allow root directory to be overridden via environment variable 2014-06-20 10:38:48 -07:00
rhy-jot
7823793f53 Remove trailing spaces 2014-06-20 10:37:51 -07:00
Jean-Philippe Doyle
b7dad66e6d Set types_hash_max_size large enough for default mime.types 2014-02-21 20:26:55 -05:00
Jean-Philippe Doyle
fdd63a1e37 Update with more complete default mime.types
from latest nginx @ https://raw.github.com/nginx/nginx/master/conf/mime.types
2014-02-21 20:20:55 -05:00
rhy-jot
7ca6438c8e Output error log to stderr 2013-08-17 19:53:44 -07:00
rhy-jot
070274df73 Initial version 2013-08-16 23:44:22 -07:00