0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-15 19:05:09 +01:00

explain proxy configuration

This commit is contained in:
Martin Monperrus 2019-09-01 20:59:59 +02:00 committed by GitHub
parent 5804f506d8
commit 892ab227c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,12 @@ $ docker run -d -p 8080:80 nextcloud
Now you can access Nextcloud at http://localhost:8080/ from your host system. Now you can access Nextcloud at http://localhost:8080/ from your host system.
If you set up docker behind a proxy (eg with Apache's `ProxyPass`), you need to override `overwritehost` and possibly `overwriteprotocol` [(reference documentation)](https://docs.nextcloud.com/server/12/admin_manual/configuration_server/config_sample_php_parameters.html#proxy-configurations).
```console
# docker exec --user www-data CONTAINER_ID php occ config:system:set overwritehost --value nextcloud.yourdomain.net
# docker exec --user www-data CONTAINER_ID php occ config:system:set overwriteprotocol --value https
```
## Using the fpm image ## Using the fpm image
To use the fpm image you need an additional web server that can proxy http-request to the fpm-port of the container. For fpm connection this container exposes port 9000. In most cases you might want use another container or your host as proxy. To use the fpm image you need an additional web server that can proxy http-request to the fpm-port of the container. For fpm connection this container exposes port 9000. In most cases you might want use another container or your host as proxy.