nextcloud.subdomain.conf 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # make sure that your dns has a cname set for nextcloud
  2. # assuming this container is called "letsencrypt", edit your nextcloud container's config
  3. # located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
  4. # 'trusted_proxies' => ['letsencrypt'],
  5. # 'overwrite.cli.url' => 'https://nextcloud.your-domain.com/',
  6. # 'overwritehost' => 'nextcloud.your-domain.com',
  7. # 'overwriteprotocol' => 'https',
  8. #
  9. # Also don't forget to add your domain name to the trusted domains array. It should look somewhat like this:
  10. # array (
  11. # 0 => '192.168.0.1:444', # This line may look different on your setup, don't modify it.
  12. # 1 => 'nextcloud.your-domain.com',
  13. # ),
  14. server {
  15. listen 443 ssl;
  16. listen [::]:443 ssl;
  17. server_name nextcloud.*;
  18. include /config/nginx/ssl.conf;
  19. client_max_body_size 0;
  20. location / {
  21. include /config/nginx/proxy.conf;
  22. resolver 127.0.0.11 valid=30s;
  23. set $upstream_app nextcloud;
  24. set $upstream_port 443;
  25. set $upstream_proto https;
  26. proxy_pass $upstream_proto://$upstream_app:$upstream_port;
  27. #proxy_max_temp_file_size 2048m;
  28. proxy_max_temp_file_size 30720m;
  29. }
  30. }