Commit Graph

41 Commits

Author SHA1 Message Date
Adam Monsen 2a5bc6f3bb
enable mariadb auto upgrade (#1814)
* enable mariadb auto upgrade

This fixes after-upgrade issues, for example:

    [ERROR] Incorrect definition of table mysql.event: expected column 'definer' at position 3 to have type varchar(, found type char(141).

The upgrade only happens when necessary.

I also disabled the system database backup because I assume users create
and test their own backups.

Signed-off-by: Adam Monsen <haircut@gmail.com>

* use 1s instead of "yesplease"

Any nonzero value is valid for these environment variables.

Signed-off-by: Adam Monsen <haircut@gmail.com>

Signed-off-by: Adam Monsen <haircut@gmail.com>
2022-09-06 16:45:45 +00:00
Jan Kiesewetter 522559eefd Prevent nginx HTTP Server Detection
Signed-off-by: Jan Kiesewetter <jan@t3easy.de>
2022-02-17 14:55:39 +01:00
Lejo 0201ea31f4
Revert volumes_from (#1677)
Signed-off-by: Lejo1 <Lejo_1@web.de>
2022-01-14 10:35:13 +00:00
Lejo 3619c0caac
Update Nginx-Proxy Docker repository (#1644)
Signed-off-by: Lejo1 <Lejo_1@web.de>
2021-12-10 09:53:51 +00:00
aney1 f4dbcf523a
add rewrite rule from official docs to nginx examples (#1635)
Without this rewrite rule you can't access some pages (like LDAP config).
These lines are present in the official docs: https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html

Signed-off-by: aney1 <aney1@users.noreply.github.com>
2021-11-25 13:04:39 +00:00
rafgk d82bc95d11
Switch to new nginx companion registry. (#1571)
As stated in https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-companion/ the the project has moved to a new registry and therefore that should be used instead.
2021-11-25 12:42:57 +00:00
Marcel Blöcher c9143621ba
fix acme volume with letsencrypt-nginx-proxy-companion >= v2.0.0 (#1358)
Signed-off-by: Marcel Blöcher <mblo@users.noreply.github.com>
2021-08-23 12:42:38 +00:00
J0WI 1a432d98fa
Lock mariadb to 10.5 in examples (fix #1536) (#1539)
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-07-18 22:00:36 +00:00
J0WI a92ea90731
Update nginx.conf (#1517)
https://github.com/nextcloud/documentation/blob/master/admin_manual/installation/nginx-root.conf.sample
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-06-27 15:14:11 +00:00
J0WI 953ebac32b
Reduce examples (#1484) 2021-04-26 17:15:37 +00:00
warren-ru 16a3e7598f
Changing of nginx reverse proxy config (#1380)
* Update nginx.conf

* Update nginx.conf

* Update nginx.conf
2021-01-25 19:39:31 +00:00
J0WI 6b6c68cabf
Serve mp4 and webm files directly in nginx (#1076)
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2020-04-22 21:16:45 +00:00
J0WI fbdb70e856
Remove workaround to create the postgres db (fix #886) (#961)
This reverts commit 4df6f79568.
The upstream bug has been fixed in https://github.com/nextcloud/server/pull/15187

Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2020-01-13 16:11:28 +00:00
alexschroth 269a081138 examples: docker-compose: Update nginx configs (#912)
* examples: docker-compose: insecure: postgres: Update nginx.conf

This commit applies the latest nginx configuration from the official
documentation. Therefore it also helps to fix CVE-2019-11043.

References:

- https://nextcloud.com/blog/urgent-security-issue-in-nginx-php-fpm
- https://docs.nextcloud.com/server/17/admin_manual/installation/nginx.html

Signed-off-by: Alexander Schroth <alexander.schroth@fau.de>

* examples: docker-compose: insecure: mariadb-cron-redis: Update nginx.conf

This commit applies the latest nginx configuration from the official
documentation. Therefore it also helps to fix CVE-2019-11043.

References:

- https://nextcloud.com/blog/urgent-security-issue-in-nginx-php-fpm
- https://docs.nextcloud.com/server/17/admin_manual/installation/nginx.html

Signed-off-by: Alexander Schroth <alexander.schroth@fau.de>

* examples: docker-compose: insecure: mariadb: Update nginx.conf

This commit applies the latest nginx configuration from the official
documentation. Therefore it also helps to fix CVE-2019-11043.

References:

- https://nextcloud.com/blog/urgent-security-issue-in-nginx-php-fpm
- https://docs.nextcloud.com/server/17/admin_manual/installation/nginx.html

Signed-off-by: Alexander Schroth <alexander.schroth@fau.de>

* examples: docker-compose: with-nginx-proxy: mariadb: Update nginx.conf

This commit applies the latest nginx configuration from the official
documentation. Therefore it also helps to fix CVE-2019-11043.

References:

- https://nextcloud.com/blog/urgent-security-issue-in-nginx-php-fpm
- https://docs.nextcloud.com/server/17/admin_manual/installation/nginx.html

Signed-off-by: Alexander Schroth <alexander.schroth@fau.de>

* examples: docker-compose: with-nginx-proxy: mariadb-cron-redis: Update nginx.conf

This commit applies the latest nginx configuration from the official
documentation. Therefore it also helps to fix CVE-2019-11043.

References:

- https://nextcloud.com/blog/urgent-security-issue-in-nginx-php-fpm
- https://docs.nextcloud.com/server/17/admin_manual/installation/nginx.html

Signed-off-by: Alexander Schroth <alexander.schroth@fau.de>

* examples: docker-compose: with-nginx-proxy: postgres: Update nginx.conf

This commit applies the latest nginx configuration from the official
documentation. Therefore it also helps to fix CVE-2019-11043.

References:

- https://nextcloud.com/blog/urgent-security-issue-in-nginx-php-fpm
- https://docs.nextcloud.com/server/17/admin_manual/installation/nginx.html

Signed-off-by: Alexander Schroth <alexander.schroth@fau.de>

* examples: docker-compose: with-nginx-proxy-self-signed-ssl: mariadb: Update nginx.conf

This commit applies the latest nginx configuration from the official
documentation. Therefore it also helps to fix CVE-2019-11043.

References:

- https://nextcloud.com/blog/urgent-security-issue-in-nginx-php-fpm
- https://docs.nextcloud.com/server/17/admin_manual/installation/nginx.html

Signed-off-by: Alexander Schroth <alexander.schroth@fau.de>
2019-11-07 20:30:48 +01:00
Tilo Spannagel 4df6f79568 Allow nextcloud to create the postgres db (#784)
Signed-off-by: Tilo Spannagel <development@tilosp.de>
2019-07-05 13:50:40 +02:00
Christoph Reiter 64607f4916 nginx-proxy: Set proxy_request_buffering to off. Fixes #650 (#651)
Otherwise nginx buffers uploads which at least with the linux client results
in large files failing to upload and the upload stats not updating.

Signed-off-by: Christoph Reiter <reiter.christoph@gmail.com>
2019-06-19 00:45:12 +02:00
ykgmfq 53bb46d1dc Let nginx decide on number of worker processes (#732)
From https://www.nginx.com/blog/tuning-nginx/:
In most cases, running one worker process per CPU core works well,
and we recommend setting this directive to auto to achieve that.
There are times when you may want to increase this number,
such as when the worker processes have to do a lot of disk I/O.
2019-06-19 00:37:44 +02:00
Tilo Spannagel cc0564ed40
Remove app dockerfile
Signed-off-by: Tilo Spannagel <development@tilosp.de>
2019-02-07 13:06:04 +01:00
marceljd e0de4ab285 removed old redis.config.php files
On branch redis-env-vars
 Changes to be committed:
	deleted:    ../../apache/app/redis.config.php
	deleted:    redis.config.php
	deleted:    ../../../../with-nginx-proxy/mariadb-cron-redis/apache/app/redis.config.php
	deleted:    ../../../../with-nginx-proxy/mariadb-cron-redis/fpm/app/redis.config.php

Signed-off-by: marceljd <support@dihosting.ch>
2019-01-27 15:08:57 +00:00
marceljd a9f458ce9f Changes to be committed:
modified:   .config/redis.config.php
	modified:   .examples/docker-compose/insecure/mariadb-cron-redis/apache/docker-compose.yml
	modified:   .examples/docker-compose/insecure/mariadb-cron-redis/fpm/docker-compose.yml
	modified:   .examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/apache/docker-compose.yml
	modified:   .examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/docker-compose.yml
	modified:   13.0/apache/Dockerfile
	modified:   13.0/apache/config/redis.config.php
	modified:   13.0/fpm-alpine/Dockerfile
	modified:   13.0/fpm-alpine/config/redis.config.php
	modified:   13.0/fpm/Dockerfile
	modified:   13.0/fpm/config/redis.config.php
	modified:   14.0/apache/Dockerfile
	modified:   14.0/apache/config/redis.config.php
	modified:   14.0/fpm-alpine/Dockerfile
	modified:   14.0/fpm-alpine/config/redis.config.php
	modified:   14.0/fpm/Dockerfile
	modified:   14.0/fpm/config/redis.config.php
	modified:   15.0/apache/Dockerfile
	modified:   15.0/apache/config/redis.config.php
	modified:   15.0/fpm-alpine/Dockerfile
	modified:   15.0/fpm-alpine/config/redis.config.php
	modified:   15.0/fpm/Dockerfile
	modified:   15.0/fpm/config/redis.config.php
	modified:   README.md

Signed-off-by: marceljd <support@dihosting.ch>
2019-01-27 13:46:25 +00:00
Nico Kaiser f3524791d9 Fix woff2 files in nginx examples
Since some versions of Nextcloud, fonts are served as woff2, which is
not forwarded to index.php by the supplied nginx.conf. This leads to
nginx returning the dynamic index page instead of the static fonts.

Signed-off-by: Nico Kaiser <nico@kaiser.me>
2019-01-21 16:55:55 +01:00
J0WI aa5c0c1929 Use Alpine Linux in examples and use default user
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2018-11-20 20:24:22 +01:00
Louis Matthijssen a31db79ae9
Add Referrer-Policy header examples for nginx 2018-09-11 19:38:17 +02:00
Tilo Spannagel 71b4d891f8
Use $request_uri instead of $uri in nginx config
Signed-off-by: Tilo Spannagel <development@tilosp.de>
2018-08-16 17:59:03 +02:00
Tilo Spannagel 654ddeae23 Remove trailing whitespaces 2018-08-01 22:55:25 +02:00
rabaraho d905503a6e Changed db build to pre-existing image with command arguments 2018-04-19 12:47:19 -04:00
Tilo Spannagel 01ad4658ab nginx: set the remote ip from X-Real-IP by default (#302) 2018-04-03 09:40:53 +02:00
Tilo Spannagel bb42fcfaed
Merge pull request #183 from cropse/master
fix #176 Request Entity Too Large
2018-03-21 15:25:03 +01:00
Tilo Spannagel b2e04519ed
Use custom Dockerfile instead of mounted config
Signed-off-by: Tilo Spannagel <development@tilosp.de>
2018-03-21 14:39:09 +01:00
Greek 8c86333de9 * Fix the Transaction Isolation Level of the MYSQL/MariaDB Databases
in the .example section.
2018-02-08 20:34:08 +01:00
Tilo Spannagel 2e3645f853
Use cron.sh for the example docker-compose.yml's 2018-01-30 13:16:40 +01:00
cropse 21eaaec8ee miner fix 2017-11-15 22:53:54 +08:00
cropse 1eb3ca378a delete volume mount, It append the path of dockerfile build. 2017-11-15 22:50:58 +08:00
Tilo Spannagel 813de3656d
Allow compose to find all env variables 2017-10-24 12:39:01 +02:00
Jorge Villasenor 577ff54b45 Allow compose to find all env variables
With two declared "environment" compose only takes the second one. In
thi case it means that the letsencrypt companion and reverse-proxy can't
read the neede variables for the setup, making this example to return a
http 503 error.
2017-10-22 20:44:40 -07:00
Tilo Spannagel 122e66ca7c
Set client_max_body_size to 10G 2017-09-30 13:14:13 +02:00
Tilo Spannagel 0548adf1c1
Use autoconfig.php provided by the image 2017-09-27 13:29:15 +02:00
Tilo Spannagel 4fbd273cb0
Add more examples with proxy 2017-09-27 13:29:15 +02:00
Marc Brückner 3c2f4b52e1
Use custom Dockerfiles instead of mounting files for remote docker #104 2017-09-27 13:29:13 +02:00
Marc Brückner 50b9eadbff
deleted redundant lines 2017-09-27 13:29:11 +02:00
Marc Brückner e87d8d1217
rework of docker-compose examples 2017-09-27 13:29:11 +02:00