docker-stacks/nextcloud
Alexey Skobkin c1f6449757
Nextcloud. README.md added.
2020-04-30 02:16:50 +03:00
..
etc/nginx/sites-available Nextcloud. Nginx config added. 2020-04-30 01:35:51 +03:00
.env.dist NextCloud prototype added. 2020-04-30 01:05:11 +03:00
README.md Nextcloud. README.md added. 2020-04-30 02:16:50 +03:00
docker-compose.yml Nextcloud. Note about 80 port. 2020-04-30 02:04:18 +03:00

README.md

Configuration

Serve HTTP from the container

By default NextCloud internal Nginx config has redirects from internal 80 port to 443 (HTTPS). So if you want to reverse-proxy Nextcloud, you'll need to have a plain HTTP connection to the Nextcloud.

Example of /config/nginx/site-confs/default changes:

#server {
#    listen 80;
#    listen [::]:80;
#    server_name _;
#    return 301 https://$host$request_uri;
#}
server {
    #listen 443 ssl http2;
    listen 80;
    listen [::]:80;
    #listen [::]:443 ssl http2;                                                                
    server_name _;
    #ssl_certificate /config/keys/cert.crt;
    #ssl_certificate_key /config/keys/cert.key;

You'll have access to the Nextcloud Nginx config after first run of Nextcloud container. Don't forget to configure /config bind mount.