Commit Graph

90 Commits

Author SHA1 Message Date
Josh Richards
69952ba04d Add link to Big File handling section from nginx doc chapter
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
2024-11-13 02:13:01 +01:00
dartcafe
982f1b93f5 fix indefinite articles
Signed-off-by: dartcafe <github@dartcafe.de>
2023-09-28 13:10:47 +02:00
Joas Schilling
d55186892a Fix admin_manual warnings
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-11 10:15:18 +02:00
Josh Richards
a6b1449106 (nginx) Add php-handler tips
Fixes #10115

* Adds php-handler configuration tips
* Also some attempt at tightening up the overview

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
2023-06-05 09:09:39 -04:00
Christoph Wurst
7e24a4f566 feat(adminmanual): Add 26 upgrade docs
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-05-31 13:59:24 +02:00
Christoph Wurst
6c99f59a4c fix(adminmanual): Fix github link syntax
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-05-25 17:38:11 +02:00
acsfer
b4d14a9df1 Typo 2021-05-24 19:58:27 +02:00
acsfer
3f4541b4cc Add a warning about limited support for NGINX 2021-05-24 10:58:49 +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
anoy
3e32818aa7 remove global browser caching
Signed-off-by: anoy <anoymouserver@users.noreply.github.com>
2021-01-03 19:41:25 +01:00
Christoph Wurst
c9918d47c2 Update admin webserver config recommendations for well known handlers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-16 10:36:10 +01:00
J0WI
122ed88e53 Update urls to HTTPS
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2020-09-17 20:33:30 +02:00
Jivan Pal
2fa446d4e2 Change alias to root, as per discussion:
https://github.com/nextcloud/documentation/pull/2197#discussion_r467362742
2020-08-08 16:28:01 +01:00
Jivan Pal
776d23d52e Update comment 2020-08-08 00:36:41 +01:00
Joshua Ruehlig
892754cadb More ugly non-capturing changes 2020-08-06 10:33:34 -07:00
Joshua Ruehlig
42cbf655c3 Making comment consistent 2020-08-06 10:25:09 -07:00
Jivan Pal
1c4b5aa32c Merge since my last push 2020-08-06 17:27:50 +01:00
Jivan Pal
66f7342c64 Made 2 changes to nginx.rst:
- Changed `try_files` for `/.well-known` to allow URIs that we don't handle and not pass them to our front-end controller
- Changed rule to match `/nextcloud/*` from regex rule to equivalent prefix rule
2020-08-06 17:18:10 +01:00
Joshua Ruehlig
59c946850a Update nginx.rst
Note is no longer relevant
2020-08-06 04:41:28 -07:00
Joshua Ruehlig
f383cf62eb Update nginx.rst
Discussed here > https://github.com/nextcloud/documentation/pull/2197#discussion_r453641162
2020-08-06 03:15:55 -07:00
Joshua Ruehlig
1835250df2 Another minor change
You probably are correct on NGINX optimizing groups with unused captures into non-capturing groups, but unless we know for sure/see documentation I think it is best we are explicit.
2020-08-06 02:07:55 -07:00
Joshua Ruehlig
f598e2423c Basic changes
I think we mostly agree on these, grouping them for easy merging.

Creating a new branch is giving me an error for some reason, so I will commit directly. If necessary we can always revert.
2020-08-06 01:43:10 -07:00
Jivan Pal
cc79936a73 "NextCloud" → "Nextcloud" 2020-07-27 19:59:12 +01:00
Jivan Pal
fa55f48e6c Made 4 changes to nginx.rst
- Removed `index.htm` from `index` directive
- Rewrote `DavClnt` user agent handler using `location =` and `return`, rather than `rewrite`
- Removed block which prevents access to hidden files; incorporated rule to prevent access to root-level hidden folders into existing regex rule, as in `.htaccess`
- Removed `$uri/` from `try_files` directives for static files

Signed-off-by: Jivan Pal <jivan.pal@gmail.com>
2020-07-12 21:28:26 +01:00
Jivan Pal
6b40a23ab9 Update nginx.rst -- Reworked the Nginx configs
After inspecting the Nginx configs currently seen at [ https://docs.nextcloud.com/server/19/admin_manual/installation/nginx.html ], I have notice that they are very redundant in some areas, and handle specific paths in special ways which are not needed, and which run the risk of needing to become more specific down the road if NextCloud adds new features, as well as not handling all static filetypes. I have reworked the configs from scratch by directly adapting the `.htaccess` files, and this is the result. Comments are included in the file to give rationale/explanation for why things are written in this new way, and if the maintainers decide to accept this pull request, I will leave it up to them to decide whether to include these expository comments upstream.

Signed-off-by: Jivan Pal <jivan.pal@gmail.com>
2020-07-12 02:44:33 +01:00
Morris Jobke
8e8929f342 Merge pull request #2152 from EV21/increase-php-in-config
increase php version to 7.4 in NGINX configuration example
2020-07-05 23:12:50 +02:00
Kevin Lanni
ad964b1a07 Add audio formats
Signed-off-by: Kevin Lanni <therealklanni@gmail.com>
2020-06-25 14:32:44 -07:00
Eduard Veit
2ef5a460b1 increase php version in nginx config
Signed-off-by: Eduard Veit <developer@ev21.de>
2020-06-16 15:11:43 +02:00
Julius Härtl
07ff58b9e1 Extend whitelist for php entrypoints
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-05-26 17:32:32 +02:00
Daniel Kesselberg
cda627b7c8 Fix: Title underline too short
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-02-23 23:12:27 +01:00
Julius Härtl
83ee3abc78 Merge pull request #1830 from EV21/fix-headings
adds more discription for sub-dir based config
2020-02-21 12:57:02 +01:00
EV21
b52df4aa53 Apply suggestions from code review
Co-Authored-By: Julius Härtl <jus@bitgrid.net>
2020-02-21 12:36:46 +01:00
Julius Härtl
36f4ee1fce Serve webm, mp4 files directly in nginx
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-02-20 21:55:20 +01:00
Eduard Veit
1a196eacce adds more discription
Signed-off-by: Eduard Veit <developer@ev21.de>
2020-02-18 14:15:10 +01:00
Felix Stupp
cb29d8155f admin_manual/installation/nginx: Added tip for allowing uploads while blocking dot files
Signed-off-by: Felix Stupp <felix.stupp@outlook.com>
2019-12-16 00:46:26 +01:00
Jasper Knockaert
8f6c1aa61a fix PATH_INFO
`try_files` was added in #1674, but that resets `$fastcgi_path_info`. This PR makes sure PATH_INFO gets the original value.
2019-10-24 20:19:07 +02:00
Roeland Jago Douma
f8bf1de627 Harden NGINX config
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-10-24 10:22:06 +02:00
John Molakvoæ
9958118d86 Update Nginx subdir headers to match webroot config (#1597)
Update Nginx subdir headers to match webroot config
2019-09-23 11:40:58 +02:00
Christoph Wurst
63e39e2b5b Also load bcmap files with nginx
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-08-26 14:14:04 +02:00
MichaIng
3fc4f5def4 Update Nginx subdir headers to match webroot config
+ Ref: https://github.com/nextcloud/documentation/pull/1520
+ The master merge to resolve conflicts has reverted the headers changes for the subdir config. This commit redoes the intended changes, to match Nginx webroot config and .htaccess.

Signed-off-by: Micha Felle <micha@dietpi.com>
2019-08-24 14:34:41 +02:00
John Molakvoæ
d2963c0160 Merge branch 'master' into x-frame 2019-07-03 16:59:19 +02:00
mrplow87
be04ba4a33 add server_port variable to well-known redirects
if Nextcloud is used on a custom HTTPS port, the well-known redirects do not work, because the server port is not included in the redirect.
2019-07-02 05:32:07 +00:00
John Molakvoæ
27a144d2a1 Cleanup trailing slashes and spaces (#1521)
Cleanup trailing slashes and spaces
2019-07-02 06:39:10 +02:00
John Molakvoæ
cd81f70d0d Update path to php-fpm socket (#1523)
Update path to php-fpm socket
2019-07-02 06:34:39 +02:00
J0WI
38b119ae8d Update path to php-fpm socket
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2019-07-02 00:09:52 +02:00
J0WI
0bc2e15849 Document the front_controller_active param
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2019-07-01 23:20:59 +02:00
J0WI
e9fdb9cc0e Cleanup trailing slashes and spaces
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2019-07-01 22:33:35 +02:00
J0WI
75727f475b Use "always" condition for security headers
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2019-07-01 22:29:32 +02:00
J0WI
017754a3f3 Sort headers
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2019-07-01 22:29:32 +02:00
J0WI
d7daa197a8 Add X-Frame-Options header to nginx
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2019-07-01 22:29:32 +02:00