Commit Graph

19 Commits

Author SHA1 Message Date
Ferdinand Thiessen
c1c9b0a072 Adjust nginx configuration to support mjs for javascript
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-03-16 15:47:37 +01:00
MichaIng
10d9cc6a79 Replace X-Robots-Tag header value with "noindex, nofollow"
For reference: https://github.com/nextcloud/server/pull/36689

Signed-off-by: MichaIng <micha@dietpi.com>
2023-02-15 17:49:55 +01:00
langj
c3a1e6f0b6 remove invalid trailing semicolon from hsts header
Signed-off-by: langj <langj@cs.tum.edu>
2022-07-24 23:53:32 +02:00
Carl Schwan
9c0e018f18 Improve Upload speed with nginx
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-19 16:33:35 +02:00
Jan Kiesewetter
261d6dafe4 Prevent nginx HTTP Server Detection
Signed-off-by: Jan Kiesewetter <jan@t3easy.de>
2022-03-02 11:41:17 +01:00
Joas Schilling
378e79537b Merge pull request #8083 from nextcloud/nginx-immuatable-cache3
fix nginx cache immutable example
2022-02-25 08:37:46 +01:00
Julius Härtl
3b33f6a04e Merge pull request #8095 from nextcloud/fix/mapfiles-nginx
Add mapfile serving for nginx conf examples
2022-02-24 09:14:41 +01:00
John Molakvoæ
39e804304a Merge pull request #6955 from ChristianTacke/pr/nginx_reorder 2022-02-24 09:12:33 +01:00
John Molakvoæ
8ba8d888b0 Update nginx-root.conf.sample 2022-02-24 09:10:01 +01:00
Robin Appelman
d70354d7bd fix nginx cache immutable example 2022-02-21 15:34:54 +01:00
Carl Schwan
b30299c32d Add documentation for cache control immutable
See https://github.com/nextcloud/server/pull/31141/files

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-02-14 16:02:08 +01:00
Carl Schwan
95ef427295 Ensure that nginx config sample allow downloading big file
"fastcgi_max_temp_file_size 0;" makes it possible to download file
bigger than 1GB. See https://help.nextcloud.com/t/synchronization-impossible-on-files-larger-than-1gb/66323/2

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-21 13:03:08 +01:00
Christian Tacke
44016fb4ae Reorder nginx config sample
Move the `root` directive more to the top. That way all the
fields that need to be changed are in one place.

Signed-off-by: Christian Tacke <8560110+ChristianTacke@users.noreply.github.com>
2022-01-08 16:05:12 +01:00
Daniel Calviño Sánchez
eb73b789bb Allow to serve static WebAssembly and TensorFlow Lite files
Since Talk 13 (and thus Nextcloud 23) WebAssembly (.wasm) and TensorFlow
Lite (.tflite) files need to be loaded from the web server to provide
certain features (like the background blur in the WebUI).

Those files can be treated in a similar way to other static resources,
and there should not be any problem caching or compressing them.
However, as compressed TensorFlow Lite files are only ~12% smaller,
the compression directive depends on the MIME type and there is no
standard MIME type for TensorFlow Lite files, for now only WebAssembly
files are compressed.

Depending on the setup "application/wasm" may not be associated with
".wasm" files, so the directive was added just in case, as the
compression is enabled through the MIME type and, besides that, the
browsers log a warning if the expected MIME type is not returned.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-11-17 13:06:58 +01:00
Daniel
3052f07ddc Merge pull request #6746 from simonspa/nginx-timeout
nginx: increase client_body_timeout
2021-10-10 11:12:09 +02:00
Christoph Wurst
87fab7a8df Fix legacy routes like ajax.php on nginx
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-09-24 15:59:54 +02:00
acsfer
01737b5811 Cache images on browser
Following https://github.com/nextcloud/server/pull/27835
2021-07-07 19:06:39 +02:00
simonspa
583321f3a9 Update nginx-root.conf.sample
Signed-off-by: Simon Spannagel <simonspa@kth.se>
2021-06-07 19:02:57 +02:00
MichaIng
9178d3b898 Fix Nginx .well-known redirects (#6221)
- Follow the .htaccess and exclude .well-known redirects for ACME challenges and PKI validation, which are not handled by Nextcloud, and handle requests for `/remote`
- Preserve the query string when redirecting .well-known URIs.
- Separate the example config files from nginx.rst

Signed-off-by: MichaIng <micha@dietpi.com>
2021-04-07 23:21:21 +01:00